diff random.c @ 198:65585699d980

* add a "label" argument to printhex() * make some vars static in random.c
author Matt Johnston <matt@ucc.asn.au>
date Tue, 10 May 2005 17:02:05 +0000
parents 06e326daf16a
children ca7e76d981d9 3be7ae2e8dfa
line wrap: on
line diff
--- a/random.c	Tue May 10 17:01:16 2005 +0000
+++ b/random.c	Tue May 10 17:02:05 2005 +0000
@@ -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 */