* add a "label" argument to printhex()

* make some vars static in random.c

--HG--
extra : convert_revision : ef941a918e42e8af23b132946f44e6836a327e71
This commit is contained in:
Matt Johnston
2005-05-10 17:02:05 +00:00
parent e48e25a548
commit 0f0a8472d7
4 changed files with 10 additions and 8 deletions

View File

@@ -27,13 +27,13 @@
#include "dbutil.h"
#include "bignum.h"
int donerandinit = 0;
static int donerandinit = 0;
/* this is used to generate unique output from the same hashpool */
unsigned int counter = 0;
static unsigned int counter = 0;
#define MAX_COUNTER 1000000/* the max value for the counter, so it won't loop */
unsigned char hashpool[SHA1_HASH_SIZE];
static unsigned char hashpool[SHA1_HASH_SIZE];
#define INIT_SEED_SIZE 32 /* 256 bits */