renaming seed to correct name

This commit is contained in:
Xaloc 2022-06-02 10:22:58 +02:00
parent 70f0a20f35
commit f7725eb347
1 changed files with 5 additions and 5 deletions

View File

@ -2,13 +2,13 @@ from time import time_ns
n = 3 #max random number will be (2^n)
def randomNumber(maxN):
num = time_ns()
num = int(format(num, '0127b'), base=2)
allen = time_ns()
allen = int(format(allen, '0127b'), base=2)
array=[]
for i in range(16000):
array.append(num & 1)
new = (num ^ (num >> 1) ^ (num >> 2)^(num >> 7)) & 1
num = (num >> 1) | (new << 127)
array.append(allen & 1)
new = (allen ^ (allen >> 1) ^ (allen >> 2)^(allen >> 7)) & 1
allen = (allen >> 1) | (new << 127)
i=0
while True: