aboutsummaryrefslogtreecommitdiff
path: root/games/random
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1997-03-11 14:08:34 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1997-03-11 14:08:34 +0000
commit1d98c12accde52361c289c8cc24ed4fbb98a00d1 (patch)
tree79fd053297ec3e64e199e7354d8565203938ad21 /games/random
parent28c4ca5ce62e557799ce99ced1b086f776b671c4 (diff)
Notes
Diffstat (limited to 'games/random')
-rw-r--r--games/random/random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/games/random/random.c b/games/random/random.c
index b62eb2424a3d..acb882ba6b2b 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)