aboutsummaryrefslogtreecommitdiff
path: root/src/sw
diff options
context:
space:
mode:
authorJoachim StroĢˆmbergson <joachim@secworks.se>2014-12-20 08:48:48 +0100
committerJoachim StroĢˆmbergson <joachim@secworks.se>2014-12-20 08:48:48 +0100
commited4f66d8c2868e5196aba61b5fc23e223a657ad4 (patch)
tree332e7fb40beb297531e813643b7f843a757cdeb0 /src/sw
parentbff7e578ee043501a90cd2268c2980b99aa019ce (diff)
Reenabling the NUM_WORDS define.
Diffstat (limited to 'src/sw')
-rwxr-xr-xsrc/sw/trng_extract.py4
1 files 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
#----------------------------------------------------------------