Download raw body.
ksh(1), use arc4random_uniform(3) to calculate $RANDOM
On 5/22/26 2:31 PM, Biarder wrote: > I forgot to CC tech@ on it :( > > I will try to find a way to stay deterministic and modular-bias safe. > Thank you so much. > ksh(1) already does it right. Have a look at lib/libc/stdlib/rand.c > 2026년 5월 22일 (금) 오후 7:21, Manuel Giraud <manuel@ledu-giraud.fr>님이 작성: >> >> Biarder <mss091204.1@gmail.com> writes: >> >>> Sorry about not reading the manual first, and thank you for letting me >>> know about that. But I think this patch is still meaningful because >>> It removes the useless change_rand function, and tiny modular bias. >> >> Ok I see (this time it is me who should have read arc4random(3) 😅). I >> also do not understand the purpose of the change_rand call but I'm not >> an expert. >> >> Finally, I think you should stand for your patch on the list (and not >> just to me ;-) where you'll have input from real experts. >> -- >> Manuel Giraud >
ksh(1), use arc4random_uniform(3) to calculate $RANDOM