~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Introduce a `shuffle' utility function.
[sgt/puzzles]
/
puzzles.h
diff --git
a/puzzles.h
b/puzzles.h
index
e05a3e4
..
1c3ae59
100644
(file)
--- a/
puzzles.h
+++ b/
puzzles.h
@@
-223,6
+223,9
@@
unsigned char *hex2bin(const char *in, int outlen);
void game_mkhighlight(frontend *fe, float *ret,
int background, int highlight, int lowlight);
+/* Randomly shuffles an array of items. */
+void shuffle(void *array, int nelts, int eltsize, random_state *rs);
+
/*
* version.c
*/