prng: make rand_r have 2^32 period instead of 2^31
this is a minor fix to increase the period of the obsolete rand_r a bit. an include header in __rand48_step.c is fixed as well.
This commit is contained in:
parent
c79cd27e9e
commit
0996faa3d7
2 changed files with 2 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
#include <stdlib.h>
|
||||
#include <inttypes.h>
|
||||
#include <stdint.h>
|
||||
|
||||
uint64_t __rand48_step(unsigned short *xi, unsigned short *lc)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue