so i found this code online and if the value set is changed to a bigger value it throws me an error
import bit
import tqdm
import time
import random
from bit import *
from tqdm import tqdm
from time import sleep
t = time.ctime()
print('',t)
sleep(1)
print('\n ================= ================= ================= ================= =================')
print('\n\n RANDOM BITCOIN PREDATOR \n #64: 8000000000000000...ffffffffffffffff\n\n')
f=[]
i=0
a=4000000
print('\n Generate',str(a),'random Keys and sort....')
while i < a:
f.clear()
print('\n\n WAIT! ', end='\r')
sleep(1)
start = time.time()
f = random.sample(range(9223372036854775808,18446744073709551615), a)
f.sort()
end = time.time()
print('',str(a),'Keys DONE !!','{:5.3f}s'.format(end-start),'\n')
sleep(1)
print (' start scanning... ', end='\r')
sleep(2)
for line in tqdm(f):
line!='\n'
pass
key = Key.from_int(line)
addr = key.address
if addr.startswith('16jY7') or addr.endswith('jyXQN'):
print('\n\n',hex(line),'|', addr)
sleep(1)
print('\n continue...\n')
sleep(1)
if addr == "16jY7qLJnxb7CHZyqBP8qca9d51gAjyXQN":
print('\n\n Target found!!' + hex(line) + ' \n ' + addr,'\n')
file=open(u"16j.Target.Info.txt","a")
file.write('\n ' + hex(line) + ' | ' + addr)
file.close()
sleep(2)
wait = input("Press Enter to Exit.")
sleep(1)
exit()
error that it throws if i try to add 73786976294838206464,147573952589676412927 insted of (the default) 9223372036854775808,18446744073709551615
this is the error
Traceback (most recent call last):
File "main.py", line 22, in <module>
f = random.sample(range(73786976294838206464,147573952589676412927), a)
File "/usr/lib/python3.8/random.py", line 361, in sample
n = len(population)
OverflowError: Python int too large to convert to C ssize_t
so the question is how do i change the "f" variable to a bigger value..?? and not get
OverflowError: Python int too large to convert to C ssize_t