Files
vxunderground-VX-API/VX-API/CreatePseudoRandomInteger.cpp
T
vxunderground f0b5d2bd5d Function renames, code base refactor
Some function names renamed to avoid confusion, some function annotations added.
2022-09-13 06:16:55 -05:00

11 lines
257 B
C++

#include "Win32Helper.h"
INT PseudoRandomIntegerSubroutine(PULONG Context)
{
return ((*Context = *Context * 1103515245 + 12345) % ((ULONG)RAND_MAX + 1));
}
INT CreatePseudoRandomInteger(_In_ ULONG Seed)
{
return (PseudoRandomIntegerSubroutine(&Seed));
}