mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-23 17:31:43 +01:00
Fix srandom arg type accodring to Lite2
Use ^ getpid() instead of + getpid()
This commit is contained in:
parent
28c4ca5ce6
commit
1d98c12acc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=23699
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user