Turn addrandom()'s buf argument into unsigned char *

Data is usually represented as "unsigned char *" like genrandom().
This commit is contained in:
Gaël PORTAY 2015-05-02 13:48:16 +02:00
parent 18638859e6
commit c239baf801
2 changed files with 2 additions and 2 deletions

View File

@ -141,7 +141,7 @@ out:
return ret; return ret;
} }
void addrandom(char * buf, unsigned int len) void addrandom(unsigned char * buf, unsigned int len)
{ {
hash_state hs; hash_state hs;

View File

@ -29,7 +29,7 @@
void seedrandom(); void seedrandom();
void genrandom(unsigned char* buf, unsigned int len); void genrandom(unsigned char* buf, unsigned int len);
void addrandom(char * buf, unsigned int len); void addrandom(unsigned char * buf, unsigned int len);
void gen_random_mpint(mp_int *max, mp_int *rand); void gen_random_mpint(mp_int *max, mp_int *rand);
#endif /* DROPBEAR_RANDOM_H_ */ #endif /* DROPBEAR_RANDOM_H_ */