random number from windows csp

This commit is contained in:
Love Hornquist Astrand
2009-11-25 07:52:39 -08:00
parent 86f4c66efd
commit c8fc15de86
3 changed files with 127 additions and 1 deletions

View File

@@ -60,7 +60,9 @@ init_method(void)
{
if (selected_meth != NULL)
return;
#ifdef __APPLE__
#if defined(_WIN32)
selected_meth = &hc_rand_w32crypto_method;
#elif defined(__APPLE__)
selected_meth = &hc_rand_unix_method;
#else
selected_meth = &hc_rand_fortuna_method;