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/rndlinux.c | 39 --------------------------------------- 1 file changed, 39 deletions(-) (limited to 'cipher/rndlinux.c') diff --git a/cipher/rndlinux.c b/cipher/rndlinux.c index 69af64f5d..3d0ac1b58 100644 --- a/cipher/rndlinux.c +++ b/cipher/rndlinux.c @@ -27,15 +27,9 @@ #include #include #include -#ifdef HAVE_GETHRTIME - #include -#endif #ifdef HAVE_GETTIMEOFDAY #include #endif -#ifdef HAVE_GETRUSAGE - #include -#endif #include #include #include @@ -61,38 +55,6 @@ static void tty_printf(const char *fmt, ... ) #endif -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 -} - - /**************** * Used to open the Linux and xBSD /dev/random devices @@ -192,7 +154,6 @@ static struct { void *func; } func_table[] = { { 40, 1, gather_random }, - { 41, 1, fast_poll }, }; -- cgit v1.2.3