Date: Thu, 2 Apr 2026 15:16:13 +0200
On 4/2/26 14:13, Jan Schultke via Std-Proposals wrote:
> When drafting up those functions, I also realized that it's very useful
> to have overloads for limb spans and for integers. For example, when you
It may also be instructive to look at the std::philox random engine
as a motivation.
std::philox is essentially a big-integer counter that is encrypted as an
array of integers (limbs) which generates N random numbers. These
encrypted array elements are returned one by one, and every Nth call the
counter is incremented and encrypted to generate the next array of
random numbers.
> When drafting up those functions, I also realized that it's very useful
> to have overloads for limb spans and for integers. For example, when you
It may also be instructive to look at the std::philox random engine
as a motivation.
std::philox is essentially a big-integer counter that is encrypted as an
array of integers (limbs) which generates N random numbers. These
encrypted array elements are returned one by one, and every Nth call the
counter is incremented and encrypted to generate the next array of
random numbers.
Received on 2026-04-02 13:16:19
