Skip to content

Commit

Permalink
imported random and time modules
Browse files Browse the repository at this point in the history
  • Loading branch information
gp2112 committed Feb 19, 2018
1 parent 7100a6a commit 001c97d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pyrai.py
Expand Up @@ -16,6 +16,8 @@
from pyblake2 import blake2b
from bitstring import BitArray
from pure25519 import ed25519_oop as ed25519
from timeit import Timer
import random

def xrb_account(address):
# Given a string containing an XRB address, confirm validity and provide resulting hex address
Expand Down Expand Up @@ -150,9 +152,9 @@ def pow_generate(hash):
print("Profiling PoW...")
for x in range(1,11):
print("Round "+str(x)+": Generating PoW...")
start = timer()
start = Timer()
pow = pow_generate(block)
end = timer()
end = Timer()
elapsed = int(end-start)
times.append(elapsed)
print("Elapsed time: "+str(elapsed)+" seconds")
Expand Down

0 comments on commit 001c97d

Please sign in to comment.