//
// RAND_set_rand_engine from 0xdcf688 to 0xdcf6f8 (112 bytes)
//
// 1 xrefs:
// > ??> @ 0xc2d00
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall RAND_set_rand_engine(__int64 a1)
{
__int64 result; // x0
__int64 RAND; // x19
if ( !a1 )
{
RAND = 0;
LABEL_4:
RAND_set_rand_method(RAND);
qword_125F1B0 = a1;
return 1;
}
result = ENGINE_init(a1);
if ( !(_DWORD)result )
return result;
RAND = ENGINE_get_RAND(a1);
if ( RAND )
goto LABEL_4;
ENGINE_finish(a1);
return 0;
}