Make code easier to run under Purify.

This commit is contained in:
JoelKatz
2013-03-29 08:10:52 -07:00
parent 15133e023d
commit c3c439b248

View File

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