Generate uneven number of test numbers
Also remove the trailing \n
This commit is contained in:
parent
f3688bbc7f
commit
cbb4886dd2
@ -1,12 +1,12 @@
|
|||||||
import random
|
import random
|
||||||
|
|
||||||
num_iterations = 1000000
|
num_iterations = 999999
|
||||||
|
|
||||||
with open("testdata", "w") as file:
|
with open("testdata", "w") as file:
|
||||||
# Write the number of lines to expect
|
# Write the number of lines to expect
|
||||||
file.write("%s\n" % num_iterations)
|
file.write("%s" % num_iterations)
|
||||||
|
|
||||||
# Write lots of random numbers
|
# Write lots of random numbers
|
||||||
for i in range(0, num_iterations):
|
for i in range(0, num_iterations):
|
||||||
# Between 0 and the maximum of uint32
|
# Between 0 and the maximum of uint32
|
||||||
file.write("%s\n" % random.randint(0, 4294967295))
|
file.write("\n%s" % random.randint(0, 4294967295))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user