diff --git a/lib/hcrypto/test_rand.c b/lib/hcrypto/test_rand.c index aec538f4d..dc98218d9 100644 --- a/lib/hcrypto/test_rand.c +++ b/lib/hcrypto/test_rand.c @@ -126,9 +126,13 @@ main(int argc, char **argv) #ifndef NO_RAND_EGD_METHOD else if (strcasecmp(rand_method, "egd") == 0) RAND_set_rand_method(RAND_egd_method()); +#endif +#ifdef WIN32 + else if (strcasecmp(rand_method, "w32crypto") == 0) + RAND_set_rand_method(RAND_w32crypto_method()); #endif else - errx(1, "unknown method %s", rand_method); + errx(0, "unknown method %s", rand_method); } if (RAND_file_name(path, sizeof(path)) == NULL)