(gdb) break RAND_poll
Breakpoint 1 at 0x114f14: file openssl-1.0.0f/crypto/rand/rand_unix.c, line 240.
(gdb) continue
Breakpoint 1, RAND_poll () at openssl-1.0.0f/crypto/rand/rand_unix.c:240
...
262 for (i = 0; (i < sizeof(randomfiles)/sizeof(randomfiles[0])) &&
265 if ((fd = open(randomfiles[i], O_RDONLY
(gdb) inspect randomfiles[i]
$1 = 0x133247 "/dev/urandom"
278 int usec = 10*1000; /* spend 10ms on each file */
281 struct stat *st=&randomstats[i];
(gdb) inspect fd
$2 = 8
...
345 if (try_read)
347 r = read(fd,(unsigned char *)tmpbuf+n, ENTROPY_NEEDED-n);
348 if (r > 0)
(gdb) inspect r
$3 = 32
...
393 RAND_add(tmpbuf,sizeof tmpbuf,(double)n);
394 OPENSSL_cleanse(tmpbuf,n);
...
416 return 1;