From cc60062fbe5a5baea4e372fbf2aebfdf6386027b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sun, 21 Jan 2007 09:55:42 +0000 Subject: [PATCH] access private functions though the RAND_METHOD switch git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20029 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/des/rand-fortuna.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/des/rand-fortuna.c b/lib/des/rand-fortuna.c index 897364f3d..22c971443 100644 --- a/lib/des/rand-fortuna.c +++ b/lib/des/rand-fortuna.c @@ -443,7 +443,7 @@ fortuna_reseed(void) { unsigned char buf[INIT_BYTES]; - if (_hc_rand_unix_bytes(buf, sizeof(buf)) == 1) { + if ((*hc_rand_unix_method.bytes)(buf, sizeof(buf)) == 1) { add_entropy(&main_state, buf, sizeof(buf)); entropy_p = 1; memset(buf, 0, sizeof(buf)); @@ -466,7 +466,7 @@ fortuna_reseed(void) */ if (!entropy_p) { unsigned char buf[INIT_BYTES]; - if (_hc_rand_egd_bytes(NULL, buf, sizeof(buf)) == 1) { + if ((*hc_rand_egd_method.bytes)(buf, sizeof(buf)) == 1) { add_entropy(&main_state, buf, sizeof(buf)); entropy_p = 1; memset(buf, 0, sizeof(buf));