comparison dbrandom.c @ 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 a1e79ffa5862
children 9da3e7b4fe55
comparison
equal deleted inserted replaced
1095:877256d1b3fb 1096:a9e4d66ffb2c
139 out: 139 out:
140 close(readfd); 140 close(readfd);
141 return ret; 141 return ret;
142 } 142 }
143 143
144 void addrandom(char * buf, unsigned int len) 144 void addrandom(unsigned char * buf, unsigned int len)
145 { 145 {
146 hash_state hs; 146 hash_state hs;
147 147
148 /* hash in the new seed data */ 148 /* hash in the new seed data */
149 sha1_init(&hs); 149 sha1_init(&hs);