diff 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
line wrap: on
line diff
--- a/dbrandom.c	Sat Aug 12 20:51:58 2017 +0200
+++ b/dbrandom.c	Sat Aug 19 17:16:13 2017 +0200
@@ -141,7 +141,7 @@
 	return ret;
 }
 
-void addrandom(unsigned char * buf, unsigned int len)
+void addrandom(const unsigned char * buf, unsigned int len)
 {
 	hash_state hs;