Only read /dev/random once when the program starts

rather than for every connection, to "conserve entropy".

--HG--
extra : convert_revision : 21df240b71c0af8454725dec9abb428dd4bb97a2
This commit is contained in:
Matt Johnston
2006-02-11 15:15:37 +00:00
parent fcba907998
commit 1eb9209afe
6 changed files with 39 additions and 13 deletions

View File

@@ -28,6 +28,7 @@
struct mp_int;
void seedrandom();
void reseedrandom();
void genrandom(unsigned char* buf, int len);
void addrandom(unsigned char* buf, int len);
void gen_random_mpint(mp_int *max, mp_int *rand);