comparison random.c @ 839:33207ed1174b

Merge in ECC
author Matt Johnston <matt@ucc.asn.au>
date Mon, 21 Oct 2013 22:57:21 +0800
parents 4095b6d7c9fc
children 3a9ec98808c3
comparison
equal deleted inserted replaced
834:e378da7eae5d 839:33207ed1174b
26 #include "buffer.h" 26 #include "buffer.h"
27 #include "dbutil.h" 27 #include "dbutil.h"
28 #include "bignum.h" 28 #include "bignum.h"
29 #include "random.h" 29 #include "random.h"
30 30
31
31 /* this is used to generate unique output from the same hashpool */ 32 /* this is used to generate unique output from the same hashpool */
32 static uint32_t counter = 0; 33 static uint32_t counter = 0;
33 /* the max value for the counter, so it won't integer overflow */ 34 /* the max value for the counter, so it won't integer overflow */
34 #define MAX_COUNTER 1<<30 35 #define MAX_COUNTER 1<<30
35 36