Re: Use of RAND_MAX still correct?

2020-03-08 Thread Willy Tarreau
On Sun, Mar 08, 2020 at 01:27:22PM +0100, Tim Düsterhus wrote: > Willy, > > when looking at the newest PRNG commits I noticed that some places that > now use ha_random() still refer to RAND_MAX. You should check whether > that still is appropriate, because my understanding is that you are now >

[PATCH] CLEANUP: remove unused code in 'my_ffsl/my_flsl' functions

2020-03-08 Thread Miroslav Zagorac
It seems to me that shifting the variable 'a' at the end of the functions is of no use. Maybe there is something I don't see here, in which case I apologize. :) -- Zaga What can change the nature of a man? >From 772c6517400e45c6e07c7f0fd733d9cbd68c65da Mon Sep 17 00:00:00 2001 From:

Use of RAND_MAX still correct?

2020-03-08 Thread Tim Düsterhus
Willy, when looking at the newest PRNG commits I noticed that some places that now use ha_random() still refer to RAND_MAX. You should check whether that still is appropriate, because my understanding is that you are now guaranteed to receive a specific number of bits. Best regards Tim Düsterhus