test: use cryptographic random number gen #28326

pull jamesob wants to merge 1 commits into bitcoin:master from jamesob:jamesob-23-08-no-milksad changing 1 files +10 −4
  1. jamesob commented at 3:46 PM on August 22, 2023: member

    If it's easy, why not?

    I know test_framework isn't meant for anything but regtest testing, but I could see someone naively copying the ECKey class and using it elsewhere.

    Will benchmark to make sure this isn't noticeably slower.

  2. DrahtBot commented at 3:46 PM on August 22, 2023: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline for information on the review process. A summary of reviews will appear here.

  3. DrahtBot added the label Tests on Aug 22, 2023
  4. test: use cryptographic random number gen
    If it's easy, why not?
    86ca75ff5d
  5. jamesob force-pushed on Aug 22, 2023
  6. sipa commented at 3:51 PM on August 22, 2023: member

    Why not? I'd say because it doesn't add anything (for tests, weaker randomness is fine) and may confuse potential people looking at the code (you still shouldn't use it for production).

  7. jamesob commented at 3:55 PM on August 22, 2023: member

    Fair enough.

  8. jamesob closed this on Aug 22, 2023

  9. bitcoin locked this on Aug 21, 2024
Labels

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-27 21:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me