~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
We may reluctantly permit the returning of a too-easy puzzle if an
[sgt/puzzles]
/
latin.c
diff --git
a/latin.c
b/latin.c
index
22488a7
..
2d6ae74
100644
(file)
--- a/
latin.c
+++ b/
latin.c
@@
-1092,6
+1092,7
@@
digit *latin_generate(int o, random_state *rs)
for (j = 0; j < o; j++)
col[j] = num[j] = j;
shuffle(col, j, sizeof(*col), rs);
+ shuffle(num, j, sizeof(*num), rs);
/* We need the num permutation in both forward and inverse forms. */
for (j = 0; j < o; j++)
numinv[num[j]] = j;