diff dbrandom.h @ 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 9169e4e7cbee
children 5916af64acd4
line wrap: on
line diff
--- a/dbrandom.h	Sat Aug 12 20:51:58 2017 +0200
+++ b/dbrandom.h	Sat Aug 19 17:16:13 2017 +0200
@@ -29,7 +29,7 @@
 
 void seedrandom(void);
 void genrandom(unsigned char* buf, unsigned int len);
-void addrandom(unsigned char * buf, unsigned int len);
+void addrandom(const unsigned char * buf, unsigned int len);
 void gen_random_mpint(mp_int *max, mp_int *rand);
 
 #endif /* DROPBEAR_RANDOM_H_ */