This commit is contained in:
love-code-yeyixiao 2024-07-28 21:37:56 +08:00
parent 4164b90041
commit aa98d91d5d
1 changed files with 2 additions and 2 deletions

View File

@ -1583,7 +1583,7 @@ static int GetIntLen(DWORD n) {
static unsigned long seed = 1; static unsigned long seed = 1;
int my_rand(void) int my_rand(void)
{ {
seed = seed * 214013L seed = (seed * 214013L
+ 2531011L) >> 16; + 2531011L) >> 16;
return((unsigned)seed & 0x7fff); return((unsigned)seed & 0x7fff);
} }
@ -1627,7 +1627,7 @@ int my_rand(void)
}*/ }*/
_FX BOOLEAN Custom_ProductID(void) { _FX BOOLEAN Custom_ProductID(void) {
if (SbieApi_QueryConfBool(NULL, L"RandomProductId", FALSE) { if (SbieApi_QueryConfBool(NULL, L"RandomProductId", FALSE)) {
NTSTATUS status; NTSTATUS status;
UNICODE_STRING uni; UNICODE_STRING uni;
OBJECT_ATTRIBUTES objattrs; OBJECT_ATTRIBUTES objattrs;