sxt: cleanup, minor easy to view commit;

This commit is contained in:
Alexander Vdolainen 2016-06-16 05:08:37 +03:00
parent ddb219c1b4
commit 52722529d0

View File

@ -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;
} }