Mercurial > dropbear
comparison dbrandom.c @ 1459:06d52bcb8094
Pointer parameter could be declared as pointing to const
author | Francois Perrad <francois.perrad@gadz.org> |
---|---|
date | Sat, 19 Aug 2017 17:16:13 +0200 |
parents | ead816a63549 |
children | 2d450c1056e3 |
comparison
equal
deleted
inserted
replaced
1458:bdd3802c8ac6 | 1459:06d52bcb8094 |
---|---|
139 out: | 139 out: |
140 close(readfd); | 140 close(readfd); |
141 return ret; | 141 return ret; |
142 } | 142 } |
143 | 143 |
144 void addrandom(unsigned char * buf, unsigned int len) | 144 void addrandom(const 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); |