diff options
author | ache <ache@FreeBSD.org> | 1997-03-11 14:08:34 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-03-11 14:08:34 +0000 |
commit | db776ff976bea03aafbaa23a0c8dffcd9798f15d (patch) | |
tree | c37642ec7ebbc3a2b9ed1f367e6a2e18cdc408f5 /games | |
parent | 25a75681875810cd650f496ad8f6d657424431f0 (diff) | |
download | FreeBSD-src-db776ff976bea03aafbaa23a0c8dffcd9798f15d.zip FreeBSD-src-db776ff976bea03aafbaa23a0c8dffcd9798f15d.tar.gz |
Fix srandom arg type accodring to Lite2
Use ^ getpid() instead of + getpid()
Diffstat (limited to 'games')
-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) |