mirror of
https://github.com/vxunderground/VX-API
synced 2026-06-06 16:54:55 +00:00
f0b5d2bd5d
Some function names renamed to avoid confusion, some function annotations added.
11 lines
257 B
C++
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));
|
|
} |