comparison dbrandom.h @ 1096:a9e4d66ffb2c

Turn addrandom()'s buf argument into unsigned char * Data is usually represented as "unsigned char *" like genrandom().
author Gaël PORTAY <gael.portay@gmail.com>
date Sat, 02 May 2015 13:48:16 +0200
parents deed0571cacc
children 9169e4e7cbee
comparison
equal deleted inserted replaced
1095:877256d1b3fb 1096:a9e4d66ffb2c
27 27
28 #include "includes.h" 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(unsigned 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);
34 34
35 #endif /* DROPBEAR_RANDOM_H_ */ 35 #endif /* DROPBEAR_RANDOM_H_ */