summaryrefslogtreecommitdiffhomepage
path: root/random.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2013-04-07 01:36:42 +0800
committerMatt Johnston <matt@ucc.asn.au>2013-04-07 01:36:42 +0800
commitc6bdc810abab5b58aba26a7618c49f3dac58ebd6 (patch)
tree2594798a88e46aff08f0b350925b4a77eb0a6341 /random.c
parenta8135dec1e8b9360274679c9ff89cb98cda87930 (diff)
ecc kind of works, needs fixing/testing
--HG-- branch : ecc
Diffstat (limited to 'random.c')
-rw-r--r--random.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/random.c b/random.c
index 8907644..c5a522e 100644
--- a/random.c
+++ b/random.c
@@ -27,7 +27,6 @@
#include "dbutil.h"
#include "bignum.h"
#include "random.h"
-#include "ltc_prng.h"
/* this is used to generate unique output from the same hashpool */
@@ -38,8 +37,6 @@ static uint32_t counter = 0;
static unsigned char hashpool[SHA1_HASH_SIZE] = {0};
static int donerandinit = 0;
-int dropbear_ltc_prng = -1;
-
#define INIT_SEED_SIZE 32 /* 256 bits */
/* The basic setup is we read some data from /dev/(u)random or prngd and hash it
@@ -235,13 +232,6 @@ void seedrandom() {
sha1_done(&hs, hashpool);
-#ifdef DROPBEAR_LTC_PRNG
- if (dropbear_ltc_prng == -1) {
- dropbear_ltc_prng = register_prng(&dropbear_prng_desc);
- dropbear_assert(dropbear_ltc_prng != -1);
- }
-#endif
-
counter = 0;
donerandinit = 1;