From 08d12ee6e0832a9960657ed7de5ce43bde57009c Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Thu, 24 Dec 2009 07:13:15 +0100 Subject: [PATCH] implement RAND_pseudorand for the w32 provider in terms of w32crypto_bytes --- lib/hcrypto/rand-w32.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/hcrypto/rand-w32.c b/lib/hcrypto/rand-w32.c index bc9d24f58..a5792d95c 100644 --- a/lib/hcrypto/rand-w32.c +++ b/lib/hcrypto/rand-w32.c @@ -104,12 +104,6 @@ w32crypto_add(const void *indata, int size, double entropi) { } -static int -w32crypto_pseudorand(unsigned char *outdata, int size) -{ - return 1; -} - static int w32crypto_status(void) { @@ -123,7 +117,7 @@ const RAND_METHOD hc_rand_w32crypto_method = { w32crypto_bytes, w32crypto_cleanup, w32crypto_add, - w32crypto_pseudorand, + w32crypto_bytes, w32crypto_status };