From c3c439b248955f2bc1287d75991d5da5b6e3e95f Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Fri, 29 Mar 2013 08:10:52 -0700 Subject: [PATCH] Make code easier to run under Purify. --- src/cpp/ripple/utils.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cpp/ripple/utils.cpp b/src/cpp/ripple/utils.cpp index f2eb6945a..fb488f19f 100644 --- a/src/cpp/ripple/utils.cpp +++ b/src/cpp/ripple/utils.cpp @@ -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);