Re: [Mesa-dev] [PATCH v2] util/rand_xor: seed with getentropy when available

2017-03-23 Thread Nicolai Hähnle
On 23.03.2017 05:53, Jonathan Gray wrote: On Thu, Mar 23, 2017 at 03:24:16PM +1100, Jonathan Gray wrote: Instead of using using /dev/urandom on Linux and time(NULL) elsewhere for a seed first use getentropy() for systems that have a kernel interface to get a seed such as OpenBSD. This

Re: [Mesa-dev] [PATCH v2] util/rand_xor: seed with getentropy when available

2017-03-23 Thread Nicolai Hähnle
On 23.03.2017 07:19, Jonathan Gray wrote: On Thu, Mar 23, 2017 at 03:24:16PM +1100, Jonathan Gray wrote: Instead of using using /dev/urandom on Linux and time(NULL) elsewhere for a seed first use getentropy() for systems that have a kernel interface to get a seed such as OpenBSD. This

Re: [Mesa-dev] [PATCH v2] util/rand_xor: seed with getentropy when available

2017-03-23 Thread Jonathan Gray
On Thu, Mar 23, 2017 at 03:24:16PM +1100, Jonathan Gray wrote: > Instead of using using /dev/urandom on Linux and time(NULL) elsewhere > for a seed first use getentropy() for systems that have a kernel > interface to get a seed such as OpenBSD. This interface is also > present in other systems

Re: [Mesa-dev] [PATCH v2] util/rand_xor: seed with getentropy when available

2017-03-22 Thread Jonathan Gray
On Thu, Mar 23, 2017 at 03:24:16PM +1100, Jonathan Gray wrote: > Instead of using using /dev/urandom on Linux and time(NULL) elsewhere > for a seed first use getentropy() for systems that have a kernel > interface to get a seed such as OpenBSD. This interface is also > present in other systems

[Mesa-dev] [PATCH v2] util/rand_xor: seed with getentropy when available

2017-03-22 Thread Jonathan Gray
Instead of using using /dev/urandom on Linux and time(NULL) elsewhere for a seed first use getentropy() for systems that have a kernel interface to get a seed such as OpenBSD. This interface is also present in other systems such as Solaris and even Linux with a recent version of glibc. v2: check