From af6e96e4f918169508acd8a710309cf617eff3c1 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 10 Dec 1998 19:20:47 +0000 Subject: See ChangeLog: Thu Dec 10 20:15:36 CET 1998 Werner Koch --- cipher/rndunix.c | 33 --------------------------------- 1 file changed, 33 deletions(-) (limited to 'cipher/rndunix.c') diff --git a/cipher/rndunix.c b/cipher/rndunix.c index 530971723..3eca9df81 100644 --- a/cipher/rndunix.c +++ b/cipher/rndunix.c @@ -617,38 +617,6 @@ slowPoll(void) } -static void -fast_poll( void (*add)(const void*, size_t, int) ) -{ - #if HAVE_GETHRTIME - { hrtime_t tv; - tv = gethrtime(); - (*add)( &tv, sizeof(tv), 1 ); - } - #elif HAVE_GETTIMEOFDAY - { struct timeval tv; - if( gettimeofday( &tv, NULL ) ) - BUG(); - (*add)( &tv.tv_sec, sizeof(tv.tv_sec), 1 ); - (*add)( &tv.tv_usec, sizeof(tv.tv_usec), 1 ); - } - #else /* use times */ - { struct tms buf; - times( &buf ); - (*add)( &buf, sizeof buf, 1 ); - } - #endif - #ifdef HAVE_GETRUSAGE - { struct rusage buf; - if( getrusage( RUSAGE_SELF, &buf ) ) - BUG(); - (*add)( &buf, sizeof buf, 1 ); - memset( &buf, 0, sizeof buf ); - } - #endif -} - - static int gather_random( byte *buffer, size_t *r_length, int level ) @@ -698,7 +666,6 @@ static struct { void *func; } func_table[] = { { 40, 1, gather_random }, - { 41, 1, fast_poll }, }; /**************** -- cgit v1.2.3