Index: rndlinux.c =================================================================== RCS file: /home/cvs/GNUnet/GNUnet/src/util/gcry/rndlinux.c,v retrieving revision 1.3 diff -c -r1.3 rndlinux.c *** rndlinux.c 24 Aug 2003 00:24:00 -0000 1.3 --- rndlinux.c 24 Aug 2003 05:46:17 -0000 *************** *** 110,122 **** to properly switch to /dev/srandom, and /dev/random locks the system up by always giving back EOF on my test machine (which is just the type of error that is not handled by the code, as far as I can tell). */ { if( fd_urandom == -1 ) ! fd_urandom = open_device( NAME_OF_DEV_URANDOM, 9 ); fd = fd_urandom; ! } ! #endif ! #if 0 #ifdef HAVE_DEV_RANDOM_IOCTL fprintf(stderr, "entropy count of %d is %lu\n", fd, get_entropy_count(fd) ); --- 110,122 ---- to properly switch to /dev/srandom, and /dev/random locks the system up by always giving back EOF on my test machine (which is just the type of error that is not handled by the code, as far as I can tell). */ + #endif { if( fd_urandom == -1 ) ! fd_urandom = open_device( NAME_OF_DEV_URANDOM, 9 ); fd = fd_urandom; ! } ! #if 0 #ifdef HAVE_DEV_RANDOM_IOCTL fprintf(stderr, "entropy count of %d is %lu\n", fd, get_entropy_count(fd) );