aboutsummaryrefslogtreecommitdiffstats
path: root/cipher/rndunix.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1998-12-10 19:20:47 +0000
committerWerner Koch <[email protected]>1998-12-10 19:20:47 +0000
commitaf6e96e4f918169508acd8a710309cf617eff3c1 (patch)
treebe313d86fcf1e63ae95686216e149e3aac770749 /cipher/rndunix.c
parentSee ChangeLog: Wed Dec 9 13:41:06 CET 1998 Werner Koch (diff)
downloadgnupg-af6e96e4f918169508acd8a710309cf617eff3c1.tar.gz
gnupg-af6e96e4f918169508acd8a710309cf617eff3c1.zip
See ChangeLog: Thu Dec 10 20:15:36 CET 1998 Werner Koch
Diffstat (limited to 'cipher/rndunix.c')
-rw-r--r--cipher/rndunix.c33
1 files changed, 0 insertions, 33 deletions
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 },
};
/****************