aboutsummaryrefslogtreecommitdiff
path: root/games/einstein/patches/06_srand.diff
diff options
context:
space:
mode:
authorErik Hanson <erik@slackbuilds.org>2010-05-12 23:29:18 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-12 23:29:18 +0200
commite1ea50212b57c7c82e455548ea70fa2455259658 (patch)
tree5c7d8a6d10e19828304866c824778dce478330f9 /games/einstein/patches/06_srand.diff
parentf790816ee157ce9c5c8589cc8bd24248c5f0e0fa (diff)
downloadslackbuilds-e1ea50212b57c7c82e455548ea70fa2455259658.tar.xz
games/einstein: Added to 12.2 repository
Diffstat (limited to 'games/einstein/patches/06_srand.diff')
-rw-r--r--games/einstein/patches/06_srand.diff11
1 files changed, 11 insertions, 0 deletions
diff --git a/games/einstein/patches/06_srand.diff b/games/einstein/patches/06_srand.diff
new file mode 100644
index 000000000000..fff82848bd4c
--- /dev/null
+++ b/games/einstein/patches/06_srand.diff
@@ -0,0 +1,11 @@
+--- ../orig/einstein-2.0/puzgen.cpp 2005-08-14 04:40:58.000000000 +0200
++++ puzgen.cpp 2007-08-31 08:42:16.000000000 +0200
+@@ -313,6 +313,8 @@
+
+ void genPuzzle(SolvedPuzzle &puzzle, Rules &rules)
+ {
++ srand(time(NULL));
++
+ for (int i = 0; i < PUZZLE_SIZE; i++) {
+ for (int j = 0; j < PUZZLE_SIZE; j++)
+ puzzle[i][j] = j + 1;