# HG changeset patch # User Matt Johnston # Date 1363014465 -28800 # Node ID 5f2d16d3e5985122c58bf917f8bdb0963109b68b # Parent aadfa8de977dd4890f3009de0afc7ec539f89d23 fix signedness error in prototype diff -r aadfa8de977d -r 5f2d16d3e598 random.c --- a/random.c Sun Mar 03 11:47:41 2013 +0800 +++ b/random.c Mon Mar 11 23:07:45 2013 +0800 @@ -26,6 +26,7 @@ #include "buffer.h" #include "dbutil.h" #include "bignum.h" +#include "random.h" /* this is used to generate unique output from the same hashpool */ static uint32_t counter = 0; @@ -136,7 +137,7 @@ return ret; } -void addrandom(char * buf, int len) +void addrandom(char * buf, unsigned int len) { hash_state hs;