From ed4f66d8c2868e5196aba61b5fc23e223a657ad4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Stro=CC=88mbergson?= Date: Sat, 20 Dec 2014 08:48:48 +0100 Subject: Reenabling the NUM_WORDS define. --- src/sw/trng_extract.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sw') diff --git a/src/sw/trng_extract.py b/src/sw/trng_extract.py index 0da8ae8..a47fb54 100755 --- a/src/sw/trng_extract.py +++ b/src/sw/trng_extract.py @@ -291,8 +291,7 @@ def get_rosc_entropy(dev): if VERBOSE: print "Reading rosc entropy data." -# for i in range(NUM_WORDS): - for i in range(10): + for i in range(NUM_WORDS): wait_ready(dev, ENT2_PREFIX, ENT2_STATUS) my_data = dev.read_data(ENT2_PREFIX, ENT2_ENT_DATA) print_data(my_data) @@ -314,6 +313,7 @@ def looptest(dev): if not ent_status[7]: print("Got: %d" % ent_status[7]) + #---------------------------------------------------------------- # main #---------------------------------------------------------------- -- cgit v1.2.3