sxt: cleanup, minor easy to view commit;
This commit is contained in:
parent
ddb219c1b4
commit
52722529d0
@ -68,12 +68,13 @@ int sxt_finish(void)
|
|||||||
int sxt_get_random(void *data, int len, int pseudo)
|
int sxt_get_random(void *data, int len, int pseudo)
|
||||||
{
|
{
|
||||||
if(pseudo) return RAND_bytes(data, len);
|
if(pseudo) return RAND_bytes(data, len);
|
||||||
else
|
else {
|
||||||
#if OPENSSL_API_COMPAT < 0x10100000L
|
#if OPENSSL_API_COMPAT < 0x10100000L
|
||||||
RAND_pseudo_bytes(data, len);
|
RAND_pseudo_bytes(data, len);
|
||||||
#else
|
#else
|
||||||
RAND_bytes(data, len);
|
RAND_bytes(data, len);
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user