14 Jul
2018
14 Jul
'18
11:21 p.m.
Martin Mares <mj@ucw.cz> writes:
Hi Toke,
just a random thought:
+ getrandom(n->hmac_nonce, BABEL_HMAC_NONCE_LEN, 0);
I think we cannot rely on getrandom() being available on all systems. It probably needs wrapping in sysdep code.
Yeah, figured I would probably have to look into something like that. Any idea if there is an interface that *is* available across systems?
int random(void) { return 4; /* Random number chosen by a fair dice roll. */ }
Don't think this will work ;) -Toke