1 --- gnutls-3.2.11/lib/nettle/rnd.c.orig 2014-08-26 02:08:42.243632503 +0200
2 +++ gnutls-3.2.11/lib/nettle/rnd.c 2014-08-26 02:08:41.123615625 +0200
10 #define DEVICE_READ_SIZE 16
11 #define DEVICE_READ_SIZE_MAX 32
17 static int do_device_source_egd(int init, struct event_st *event)
19 unsigned int read_size = DEVICE_READ_SIZE;
26 static int do_device_source(int init, struct event_st *event)
30 do_source = do_device_source_urandom;
31 ret = do_source(init, event);
34 do_source = do_device_source_egd;
35 ret = do_source(init, event);
42 if (level == GNUTLS_RND_NONCE)
43 _rnd_get_event(&event);
47 /* update state only when having a non-nonce or if nonce
48 * and nsecs%4096 == 0, i.e., one out of 4096 times called .
55 int crypto_rnd_prio = INT_MAX;