diff options
-rw-r--r-- | games/random/random.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/games/random/random.c b/games/random/random.c index b62eb24..acb882b 100644 --- a/games/random/random.c +++ b/games/random/random.c @@ -103,7 +103,7 @@ main(argc, argv) } (void)time(&now); - srandom((u_int)(now + getpid())); + srandom((unsigned long)(now ^ getpid())); /* Compute a random exit status between 0 and denom - 1. */ if (random_exit) |