From b0b726ed0fdbbad39677ab4cf9a477854ae0d39a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Wed, 20 Jun 2007 05:10:41 +0000 Subject: [PATCH] Default to fortuna due to weired /dev/*random that failes to deliver random data for us in hi load situations. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21198 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hcrypto/rand.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/hcrypto/rand.c b/lib/hcrypto/rand.c index 9890c5a6a..7a17c8a21 100644 --- a/lib/hcrypto/rand.c +++ b/lib/hcrypto/rand.c @@ -56,11 +56,7 @@ init_method(void) { if (selected_meth != NULL) return; - - if ((*hc_rand_unix_method.status)() == 1) - selected_meth = &hc_rand_unix_method; - else - selected_meth = &hc_rand_fortuna_method; + selected_meth = &hc_rand_fortuna_method; } void