From 086790d6331357022f4da17c76b26b9fc6e2ad90 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 13 Feb 2012 00:10:45 -0500 Subject: Removed our RNG and just use the systems, it's not very widely used. Also made DNS query ids not random as they don't need to be. --- modules/encryption/enc_sha256.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/encryption') diff --git a/modules/encryption/enc_sha256.cpp b/modules/encryption/enc_sha256.cpp index 4e9d50b96..d77cd072d 100644 --- a/modules/encryption/enc_sha256.cpp +++ b/modules/encryption/enc_sha256.cpp @@ -128,7 +128,7 @@ class ESHA256 : public Module void NewRandomIV() { for (int i = 0; i < 8; ++i) - iv[i] = getrandom32(); + iv[i] = static_cast(rand()); } /* returns the IV as base64-encrypted string */ -- cgit