Anybody tell me how can find the cgminer random functions interface?
i want to use my QRNG
There is no randomness in mining.
Value getwork(const Array& params, bool fHelp)
...
static CReserveKey reservekey(pwalletMain);
...
pblocktemplate = CreateNewBlock(reservekey);
... ...
key.MakeNewKey(fCompressed);
...
if (!EC_KEY_generate_key(pkey))
...
if (!BN_rand_range(priv_key, order))
...
BN_rand_range() generates a cryptographically strong pseudo-random number rnd in the range 0 = rnd < range. BN_pseudo_rand_range() does the same, but is based on BN_pseudo_rand(), and hence numbers generated by it are not necessarily unpredictable.
Checkmate.