comparison random.h @ 855:04ede40a529a

- Some fixes for old compilers like tru64 v4 from Daniel Richard G. - Don't warn about blocking random device for prngd
author Matt Johnston <matt@ucc.asn.au>
date Thu, 14 Nov 2013 21:36:45 +0800
parents ac2158e3e403
children
comparison
equal deleted inserted replaced
854:ccc76acaf4c7 855:04ede40a529a
23 * SOFTWARE. */ 23 * SOFTWARE. */
24 24
25 #ifndef _RANDOM_H_ 25 #ifndef _RANDOM_H_
26 #define _RANDOM_H_ 26 #define _RANDOM_H_
27 27
28 struct mp_int; 28 #include "includes.h"
29 29
30 void seedrandom(); 30 void seedrandom();
31 void genrandom(unsigned char* buf, unsigned int len); 31 void genrandom(unsigned char* buf, unsigned int len);
32 void addrandom(char * buf, unsigned int len); 32 void addrandom(char * buf, unsigned int len);
33 void gen_random_mpint(mp_int *max, mp_int *rand); 33 void gen_random_mpint(mp_int *max, mp_int *rand);