why2_random¶
Parameters¶
Identifier | Data type |
---|---|
dest |
void * |
size |
size_t |
Attributes¶
Return type | why2_bool |
Header comment | WRITE CRYPTO-SECURE RANDOM NUMBER INTO dest |
Added in commit | f95608f52a0a82b3a8c005c7f8dad0b9cf93202a |
Description¶
Function passes dest
and size
into RAND_bytes
function and gets the output value. If output value is equal to 1
, returns true
, otherwise false
.
dest
is where the output value should be stored, size
sets the allowed size to write. Should be sizeof(dest_datatype)
.