Initial work. Added some tests for big nums in rust and OpenCL.

This commit is contained in:
Kirill Shakirov
2026-01-11 07:03:09 +01:00
parent 8edbc09493
commit 194f4e734b
16 changed files with 2410 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/usr/bin/python
import random
def main(iters: int):
for i in range(iters):
rand_u32 = random.randint(1,0xffffffff)
t0 = int.from_bytes(random.randbytes(32))
t1 = t0 + 1
t2 = t0 + rand_u32
print(f"{rand_u32} {t0.to_bytes(32).hex()} {t1.to_bytes(32).hex()} {t2.to_bytes(32).hex()}")
if __name__ == '__main__':
main(1000000)