mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Make code easier to run under Purify.
This commit is contained in:
@@ -24,6 +24,9 @@
|
||||
|
||||
void getRand(unsigned char *buf, int num)
|
||||
{
|
||||
#ifdef PURIFY
|
||||
memset(buf, 0, num);
|
||||
#endif
|
||||
if (RAND_bytes(buf, num) != 1)
|
||||
{
|
||||
assert(false);
|
||||
|
||||
Reference in New Issue
Block a user