summaryrefslogtreecommitdiffstats
path: root/games/random
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1997-03-11 14:08:34 +0000
committerache <ache@FreeBSD.org>1997-03-11 14:08:34 +0000
commitdb776ff976bea03aafbaa23a0c8dffcd9798f15d (patch)
treec37642ec7ebbc3a2b9ed1f367e6a2e18cdc408f5 /games/random
parent25a75681875810cd650f496ad8f6d657424431f0 (diff)
downloadFreeBSD-src-db776ff976bea03aafbaa23a0c8dffcd9798f15d.zip
FreeBSD-src-db776ff976bea03aafbaa23a0c8dffcd9798f15d.tar.gz
Fix srandom arg type accodring to Lite2
Use ^ getpid() instead of + getpid()
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 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)
OpenPOWER on IntegriCloud