//
// RAND_get_rand_method from 0x104d97c to 0x104d9e8 (108 bytes)
//
// 7 xrefs:
// > rand_cleanup_int @ 0x104da60
// > RAND_seed @ 0x104da94
// > RAND_add @ 0x104dad4
// > RAND_bytes @ 0x104db14
// > RAND_pseudo_bytes @ 0x104db58
// > RAND_status @ 0x104db90
// > ??> @ 0xb97a0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:16:37 +0000
//
__int64 RAND_get_rand_method()
{
__int64 result; // x0
__int64 default_RAND; // x0
__int64 v2; // x21
result = qword_1567FB8;
if ( !qword_1567FB8 )
{
default_RAND = ENGINE_get_default_RAND();
v2 = default_RAND;
if ( default_RAND )
{
result = ENGINE_get_RAND(default_RAND);
qword_1567FB8 = result;
if ( result )
{
qword_1567FB0 = v2;
return result;
}
default_RAND = ENGINE_finish(v2);
}
result = RAND_OpenSSL(default_RAND);
qword_1567FB8 = result;
}
return result;
}