aboutsummaryrefslogtreecommitdiff
path: root/src/util.cpp
diff options
context:
space:
mode:
authorGregory Maxwell <[email protected]>2012-11-10 09:29:32 -0800
committerGregory Maxwell <[email protected]>2012-11-10 09:29:32 -0800
commit91cee34638ae4d5cacb5fadf0adf16428ecf1332 (patch)
tree8d745e6bfd1dd7db18b836e8a88e3b6e1a2d703c /src/util.cpp
parentMerge pull request #1977 from Diapolo/rem_printf_redef_rpc (diff)
parentmake CBase58Data class use zero_after_free_allocator (diff)
downloaddiscoin-91cee34638ae4d5cacb5fadf0adf16428ecf1332.tar.xz
discoin-91cee34638ae4d5cacb5fadf0adf16428ecf1332.zip
Merge pull request #1992 from Diapolo/no_memset
don't use memset() in privacy/security relevant code parts
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 916288645..03014a5da 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -156,7 +156,7 @@ void RandAddSeedPerfmon()
if (ret == ERROR_SUCCESS)
{
RAND_add(pdata, nSize, nSize/100.0);
- memset(pdata, 0, nSize);
+ OPENSSL_cleanse(pdata, nSize);
printf("RandAddSeed() %lu bytes\n", nSize);
}
#endif