Re: [hackers] [PATCH 1/2] Add libutil/random.c for fast PCG-based PRNG

2024-12-21 Thread Elie Le Vaillant
On Sat Dec 21, 2024 at 9:17 AM CET, NRK wrote: > I don't really understand this ifdef. What does this get? Since you > don't need cryptographic guarantees, it gets you pretty much nothing > (while it does have costs since CSPRNG are often slower due to > cryptographic nature). > > So this is just m

Re: [hackers] [PATCH 1/2] Add libutil/random.c for fast PCG-based PRNG

2024-12-21 Thread NRK
> +#ifdef OpenBSD > + > +uint32_t > +rng32(void) > +{ > + return arc4random(); > +} > + > +void > +rng32_randomseed() > +{ > + return; > +} > + > +#else /* standalone, PCG construction */ I don't really understand this ifdef. What does this get? Since you don't need cryptographic guarantee