-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use an 'unsigned int' as the rand_r seed.
This then matches the stdlib.h declaration. Looking at the numbers generated, having that be a 16-bit value doesn't appear to affect the quality of the output significantly. It's certainly good enough for typical use cases.
- Loading branch information
1 parent
daa172e
commit 4c01b21
Showing
2 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters