Mercurial > dropbear
comparison dbrandom.c @ 1274:9da3e7b4fe55
add parentheses to macro
author | Francois Perrad <francois.perrad@gadz.org> |
---|---|
date | Fri, 01 Jan 2016 09:40:24 +0100 |
parents | a9e4d66ffb2c |
children | 750ec4ec4cbe b28624698130 |
comparison
equal
deleted
inserted
replaced
1273:139935236c72 | 1274:9da3e7b4fe55 |
---|---|
30 | 30 |
31 | 31 |
32 /* this is used to generate unique output from the same hashpool */ | 32 /* this is used to generate unique output from the same hashpool */ |
33 static uint32_t counter = 0; | 33 static uint32_t counter = 0; |
34 /* 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 */ |
35 #define MAX_COUNTER 1<<30 | 35 #define MAX_COUNTER (1<<30) |
36 | 36 |
37 static unsigned char hashpool[SHA1_HASH_SIZE] = {0}; | 37 static unsigned char hashpool[SHA1_HASH_SIZE] = {0}; |
38 static int donerandinit = 0; | 38 static int donerandinit = 0; |
39 | 39 |
40 #define INIT_SEED_SIZE 32 /* 256 bits */ | 40 #define INIT_SEED_SIZE 32 /* 256 bits */ |