REDIVIVUS

Proposals / #1333

Mac SRP_SeedRandom: void __cdecl (D2Srp** ppSrp, uint32_t dwSeed)

checked · by KierTaylor · submitted 2026-11-06

The Mac body reads [EBP+8] (ppSrp, dereferenced) and [EBP+0xc] (the seed) and calls the random-state initializer 0x002f8bca with (*ppSrp, dwSeed), then a plain RET. The caller is NET_SID_CLIENT_InitializeSRP 0x00057c7a. Matches the Windows twin 0x00528620 (void; ppSrp, dwSeed; MOV ECX,[ECX] then JMP SRP_InitializeRandomState).

Changes 1, applied together

  1. Set prototype mac 0x002f9416

    signatureundefined SRP_SeedRandom(void)→void SRP_SeedRandom(D2Srp** ppSrp, uint32_t dwSeed)
    conventionunknown→__cdecl