comparison random.h @ 689:c3de235d9506

/dev/random blocks on busy servers too.
author Matt Johnston <matt@ucc.asn.au>
date Thu, 19 Jul 2012 21:34:27 +0800
parents 167fdc091c05
children b07eb3dc23ec
comparison
equal deleted inserted replaced
688:650c41a4909a 689:c3de235d9506
25 #ifndef _RANDOM_H_ 25 #ifndef _RANDOM_H_
26 #define _RANDOM_H_ 26 #define _RANDOM_H_
27 27
28 struct mp_int; 28 struct mp_int;
29 29
30 void seedstrongrandom();
31 void seedrandom(); 30 void seedrandom();
32 void genrandom(unsigned char* buf, unsigned int len); 31 void genrandom(unsigned char* buf, unsigned int len);
33 void addrandom(char * buf, unsigned int len); 32 void addrandom(char * buf, unsigned int len);
34 void gen_random_mpint(mp_int *max, mp_int *rand); 33 void gen_random_mpint(mp_int *max, mp_int *rand);
35 34