implement RAND_pseudorand for the w32 provider in terms of w32crypto_bytes

This commit is contained in:
Love Hornquist Astrand
2009-12-24 07:13:15 +01:00
parent 95888d4ad3
commit 08d12ee6e0

View File

@@ -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 static int
w32crypto_status(void) w32crypto_status(void)
{ {
@@ -123,7 +117,7 @@ const RAND_METHOD hc_rand_w32crypto_method = {
w32crypto_bytes, w32crypto_bytes,
w32crypto_cleanup, w32crypto_cleanup,
w32crypto_add, w32crypto_add,
w32crypto_pseudorand, w32crypto_bytes,
w32crypto_status w32crypto_status
}; };