mirror of
https://github.com/vxunderground/VX-API
synced 2026-06-06 16:54:55 +00:00
11 lines
252 B
C++
11 lines
252 B
C++
#include "Win32Helper.h"
|
|
|
|
INT PseudoRandomIntegerSubroutine(PULONG Context)
|
|
{
|
|
return ((*Context = *Context * 1103515245 + 12345) % ((ULONG)RAND_MAX + 1));
|
|
}
|
|
|
|
INT CreatePseudoRandomInteger(ULONG Seed)
|
|
{
|
|
return (PseudoRandomIntegerSubroutine(&Seed));
|
|
} |