summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/core/random.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/random.c b/src/core/random.c
index a74175a79..975a03cf5 100644
--- a/src/core/random.c
+++ b/src/core/random.c
@@ -18,6 +18,8 @@ static int32_t rnd_seed = 0;
*/
void srandom ( unsigned int seed ) {
rnd_seed = seed;
+ if ( ! rnd_seed )
+ rnd_seed = 4; /* Chosen by fair dice roll */
}
/**