summaryrefslogtreecommitdiffhomepage
path: root/dbrandom.c
diff options
context:
space:
mode:
authorFrancois Perrad <francois.perrad@gadz.org>2016-01-01 09:40:24 +0100
committerMatt Johnston <matt@ucc.asn.au>2016-03-16 22:41:19 +0800
commitedea73b1f8d517ca3d41caa0ba7632f95e5c8272 (patch)
treeebc283afff6913f6ecf5407a98c742190447b3ba /dbrandom.c
parent893d7be5bfaa0764b2a152a208b0b14b6e3d26d9 (diff)
add parentheses to macro
Diffstat (limited to 'dbrandom.c')
-rw-r--r--dbrandom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbrandom.c b/dbrandom.c
index 02e7803..239b044 100644
--- a/dbrandom.c
+++ b/dbrandom.c
@@ -32,7 +32,7 @@
/* this is used to generate unique output from the same hashpool */
static uint32_t counter = 0;
/* the max value for the counter, so it won't integer overflow */
-#define MAX_COUNTER 1<<30
+#define MAX_COUNTER (1<<30)
static unsigned char hashpool[SHA1_HASH_SIZE] = {0};
static int donerandinit = 0;