//
// RAND_set_rand_engine from 0xa3eb50 to 0xa3ebac (92 bytes)
//
// 1 xrefs:
// > ??> @ 0x7fb0c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:08:12 +0000
//
int __fastcall RAND_set_rand_engine(_DWORD *a1)
{
int result; // r0
int RAND; // r4
if ( !a1 )
{
RAND = 0;
LABEL_4:
RAND_set_rand_method(RAND);
dword_D357A8 = (int)a1;
return 1;
}
result = ENGINE_init(a1);
if ( !result )
return result;
RAND = ENGINE_get_RAND((int)a1);
if ( RAND )
goto LABEL_4;
ENGINE_finish((int)a1);
return 0;
}