parent
9cf0aa532a
commit
9d92d6ef39
|
@ -0,0 +1,11 @@
|
||||||
|
ULONG Next = 2;
|
||||||
|
|
||||||
|
INT PseudoRandomIntegerSubroutine(PULONG Context)
|
||||||
|
{
|
||||||
|
return ((*Context = *Context * 1103515245 + 12345) % ((ULONG)RAND_MAX + 1));
|
||||||
|
}
|
||||||
|
|
||||||
|
INT PseudoRandomInteger(VOID)
|
||||||
|
{
|
||||||
|
return (PseudoRandomIntegerSubroutine(&Next));
|
||||||
|
}
|
Loading…
Reference in New Issue