As far as I have your patch understood it looks to me that a new random value should be returned.
As I'm not an expert I just want to ask if this new feature makes here sense. I have seen this flag GRND_NONBLOCK have anyone experience with this function in no blocking application? Best regards Aleks -------- Ursprüngliche Nachricht -------- Von: David CARLIER <devne...@gmail.com> Gesendet: 11. April 2018 19:41:30 MESZ An: Aleksandar Lazic <al-hapr...@none.at> CC: Haproxy <firstname.lastname@example.org>, Willy TARREAU <wtarr...@haproxy.com> Betreff: Re: [PATCH 1/5]: random generator functions wrapper Plus not sure it really fits the usage here after second thoughts. Regards. On Wed 11 Apr 2018 6:36 PM David CARLIER <devne...@gmail.com> wrote: > Hi aleks. Getrandom is available since 3.17 kernel version (I think > correct me if I m wrong) as a syscall. Plus good care needs for its call in > non blocking mode I think. Cheers. > > On Wed 11 Apr 2018 6:26 PM Aleksandar Lazic <al-hapr...@none.at> wrote: > >> Hi David. >> >> How about to use getrandom instead of random? >> >> http://man7.org/linux/man-pages/man2/getrandom.2.html >> https://lwn.net/Articles/711013/ >> >> Best regards >> Aleks >> >> >> ------------------------------ >> *Von:* David CARLIER <devne...@gmail.com> >> *Gesendet:* 11. April 2018 18:33:46 MESZ >> *An:* Haproxy <email@example.com>, Willy TARREAU <wtarr...@haproxy.com >> > >> *Betreff:* [PATCH 1/5]: random generator functions wrapper >> >> Hi dear list, >> >> Here a patch proposal to have a wrapper around rand/random calls. >> >> If it s ok with this one I ll send the rest. >> >> Thanks. >> >> Kind regards. >> >