libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit adf73d54566059d99812e477b12b8b643517532d
parent b4d4fb361f52d0d482f6b8371c0c4ffef4cce3e4
Author: Nils Durner <durner@gnunet.org>
Date:   Sun, 17 Jan 2010 13:11:14 +0000

Fix hang on Windows by removing the call to MHD_gc_pseudo_random() which is, according to the comment, there to initialize the PRNG. The latter gets already initialized via "gcry_control (GCRYCTL_INITIALIZATION_FINISHED", so there's really no point in asking for a single random byte here. No feedback from jas@gnutls, though.

Diffstat:
Msrc/daemon/https/tls/gnutls_global.c | 3---
1 file changed, 0 insertions(+), 3 deletions(-)

diff --git a/src/daemon/https/tls/gnutls_global.c b/src/daemon/https/tls/gnutls_global.c @@ -225,9 +225,6 @@ MHD__gnutls_global_init () return result; } - /* Initialize the gcrypt (if used random generator) */ - MHD_gc_pseudo_random (&c, 1); - return result; }