Fix srandom arg type accodring to Lite2

Use ^ getpid() instead of + getpid()
This commit is contained in:
Andrey A. Chernov 1997-03-11 14:08:34 +00:00
parent 28c4ca5ce6
commit 1d98c12acc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=23699

View File

@ -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)