MacroFake a2a8e919ee
Merge bitcoin/bitcoin#24925: refactor: make GetRand a template, remove GetRandInt
ab1ea29ba1b8379a21fabd3dc859552c470a6421 refactor: make GetRand a template, remove GetRandInt (pasta)

Pull request description:

  makes GetRand a template for which any integral type can be used, where the default behavior is to return a random integral up to the max of the integral unless a max is provided.
  This simplifies a lot of code from GetRand(std::numeric_limits<uint64_t>::max() -> GetRand<uint64_t>()

ACKs for top commit:
  laanwj:
    Code review ACK ab1ea29ba1b8379a21fabd3dc859552c470a6421

Tree-SHA512: db5082a0e21783389f1be898ae73e097b31ab48cab1a2c0e29348a4adeb545d4098193aa72a547c6baa6e8205699aafec38d6a27b3d65522fb3246f91b4daae9
2022-05-12 08:57:22 +02:00
..
2021-12-30 19:36:57 +02:00
2021-12-30 19:36:57 +02:00
2022-02-21 14:32:53 +01:00
2021-12-30 19:36:57 +02:00
2022-04-28 10:24:06 +02:00
2022-05-05 20:50:24 +02:00
2022-05-05 20:50:24 +02:00
2022-04-05 13:30:06 +02:00
2022-05-05 20:50:24 +02:00
2022-04-16 13:15:14 +02:00
2021-12-30 19:36:57 +02:00