Re: [PATCH] Use getentropy() for seeding PRNG

2018-08-14 Thread Janne Blomqvist
On Tue, Aug 14, 2018 at 11:18 PM, Rainer Orth wrote: > Hi Janne, > > > PING > > > > On Fri, Aug 3, 2018 at 5:05 PM, Janne Blomqvist < > blomqvist.ja...@gmail.com> > > wrote: > > > >> On Fri, Aug 3, 2018 at 4:28 PM, Jakub Jelinek wrote: > >> > >>> On Fri, Aug 03, 2018 at 04:19:03PM +0300, Janne B

Re: [PATCH] Use getentropy() for seeding PRNG

2018-08-14 Thread Rainer Orth
Hi Janne, > PING > > On Fri, Aug 3, 2018 at 5:05 PM, Janne Blomqvist > wrote: > >> On Fri, Aug 3, 2018 at 4:28 PM, Jakub Jelinek wrote: >> >>> On Fri, Aug 03, 2018 at 04:19:03PM +0300, Janne Blomqvist wrote: >>> > --- a/libgfortran/intrinsics/random.c >>> > +++ b/libgfortran/intrinsics/random.c

Re: [PATCH] Use getentropy() for seeding PRNG

2018-08-14 Thread Fritz Reese
On Mon, Aug 13, 2018 at 4:12 PM Janne Blomqvist wrote: > > On Mon, Aug 13, 2018 at 5:36 PM, Fritz Reese wrote: >> >> On Fri, Aug 3, 2018 at 9:19 AM Janne Blomqvist >> wrote: >> > >> > The getentropy function, found on Linux, OpenBSD, and recently also >> > FreeBSD, can be used to get random byte

Re: [PATCH] Use getentropy() for seeding PRNG

2018-08-13 Thread Janne Blomqvist
On Mon, Aug 13, 2018 at 5:36 PM, Fritz Reese wrote: > On Fri, Aug 3, 2018 at 9:19 AM Janne Blomqvist > wrote: > > > > The getentropy function, found on Linux, OpenBSD, and recently also > > FreeBSD, can be used to get random bytes to initialize the PRNG. It > > is similar to the traditional way

Re: [PATCH] Use getentropy() for seeding PRNG

2018-08-13 Thread Jakub Jelinek
On Mon, Aug 13, 2018 at 01:12:12PM +0300, Janne Blomqvist wrote: > PING LGTM. > > diff --git a/libgfortran/intrinsics/random.c b/libgfortran/intrinsics/ > > random.c > > index 234c5ff95fd..229fa6995c0 100644 > > --- a/libgfortran/intrinsics/random.c > > +++ b/libgfortran/intrinsics/random.c > > @

Re: [PATCH] Use getentropy() for seeding PRNG

2018-08-13 Thread Fritz Reese
On Fri, Aug 3, 2018 at 9:19 AM Janne Blomqvist wrote: > > The getentropy function, found on Linux, OpenBSD, and recently also > FreeBSD, can be used to get random bytes to initialize the PRNG. It > is similar to the traditional way of reading from /dev/urandom, but > being a system call rather th

Re: [PATCH] Use getentropy() for seeding PRNG

2018-08-13 Thread Janne Blomqvist
PING On Fri, Aug 3, 2018 at 5:05 PM, Janne Blomqvist wrote: > On Fri, Aug 3, 2018 at 4:28 PM, Jakub Jelinek wrote: > >> On Fri, Aug 03, 2018 at 04:19:03PM +0300, Janne Blomqvist wrote: >> > --- a/libgfortran/intrinsics/random.c >> > +++ b/libgfortran/intrinsics/random.c >> > @@ -309,12 +309,9 @

Re: [PATCH] Use getentropy() for seeding PRNG

2018-08-03 Thread Paul Koning
> On Aug 3, 2018, at 9:19 AM, Janne Blomqvist wrote: > > The getentropy function, found on Linux, OpenBSD, and recently also > FreeBSD, can be used to get random bytes to initialize the PRNG. It > is similar to the traditional way of reading from /dev/urandom, but > being a system call rather

Re: [PATCH] Use getentropy() for seeding PRNG

2018-08-03 Thread Janne Blomqvist
On Fri, Aug 3, 2018 at 4:28 PM, Jakub Jelinek wrote: > On Fri, Aug 03, 2018 at 04:19:03PM +0300, Janne Blomqvist wrote: > > --- a/libgfortran/intrinsics/random.c > > +++ b/libgfortran/intrinsics/random.c > > @@ -309,12 +309,9 @@ getosrandom (void *buf, size_t buflen) > >for (size_t i = 0; i <

Re: [PATCH] Use getentropy() for seeding PRNG

2018-08-03 Thread Jakub Jelinek
On Fri, Aug 03, 2018 at 04:19:03PM +0300, Janne Blomqvist wrote: > --- a/libgfortran/intrinsics/random.c > +++ b/libgfortran/intrinsics/random.c > @@ -309,12 +309,9 @@ getosrandom (void *buf, size_t buflen) >for (size_t i = 0; i < buflen / sizeof (unsigned int); i++) > rand_s (&b[i]); >