MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / init

Method init

examples/extauth/TcWrapper.cpp:87–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87void PseudoRandom::init(ThrowStatusWrapper* status)
88{
89 // LTC hack
90 ltc_mp = ltm_desc;
91
92 // register yarrow
93 index = register_prng(&yarrow_desc);
94 if (index == -1)
95 error(status, "Error registering PRNG yarrow");
96
97 // setup the PRNG
98 check(status, yarrow_start(&state), "Error starting PRNG yarrow");
99 check(status, rng_make_prng(64, index, &state, NULL), "Error setting up PRNG yarrow");
100}
101
102void PseudoRandom::fini()
103{

Callers 6

PluginDataMethod · 0.45
mainFunction · 0.45
executeMethod · 0.45
encryptMethod · 0.45
decryptMethod · 0.45
setKeyMethod · 0.45

Calls 6

register_prngFunction · 0.85
yarrow_startFunction · 0.85
rng_make_prngFunction · 0.85
register_hashFunction · 0.85
errorFunction · 0.70
checkFunction · 0.70

Tested by

no test coverage detected