[Cryptech-Commits] [test/novena_trng] 01/01: Reenabling the NUM_WORDS define.
git at cryptech.is
git at cryptech.is
Sat Dec 20 07:49:43 UTC 2014
This is an automated email from the git hooks/post-receive script.
joachim at secworks.se pushed a commit to branch master
in repository test/novena_trng.
commit ed4f66d8c2868e5196aba61b5fc23e223a657ad4
Author: Joachim Strömbergson <joachim at secworks.se>
Date: Sat Dec 20 08:48:48 2014 +0100
Reenabling the NUM_WORDS define.
---
src/sw/trng_extract.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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
#----------------------------------------------------------------
More information about the Commits
mailing list