blockchain/tests/crypto
Claude 7ee2265cae
fix: crypto test PRNG determinism, checkpoint hashes, and Zano address remnants
The crypto test PRNG was non-deterministic because setup_random() seeded
the state but grant_random_initialize_no_lock() overwrote it with
/dev/urandom on the first random call. Calling it before memset ensures
the initialized flag is set, preventing the overwrite.

Also adds --generate mode to crypto-tests for future vector regeneration,
updates checkpoint hashes for multisig_and_checkpoints (height 15) and
gen_no_attchments_in_coinbase (height 12), and replaces hardcoded Zano
addresses/URLs with Lethean equivalents in manual test scaffolding.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 13:17:11 +00:00
..
crypto-ops-data.c Moved sources to public repo 2018-12-27 18:50:45 +03:00
crypto-ops.c Moved sources to public repo 2018-12-27 18:50:45 +03:00
crypto-tests.h Moved sources to public repo 2018-12-27 18:50:45 +03:00
crypto.cpp minor fix (presumable, not worthy but anyway) 2025-08-01 04:26:08 +03:00
hash.c Moved sources to public repo 2018-12-27 18:50:45 +03:00
main.cpp fix: crypto test PRNG determinism, checkpoint hashes, and Zano address remnants 2026-02-06 13:17:11 +00:00
random.c fix: crypto test PRNG determinism, checkpoint hashes, and Zano address remnants 2026-02-06 13:17:11 +00:00
tests.txt Moved sources to public repo 2018-12-27 18:50:45 +03:00