Files
mesa/src/util
Emmanuel Gil Peyrot 4c212a1168 util/rand_xor: use getrandom() when available
This function has been added in glibc 2.25, and the related syscall in
Linux 3.17, in order to avoid requiring the /dev/urandom to exist, and
doing the open()/read()/close() dance on it.

We pass GRND_NONBLOCK so that it doesn’t block if not enough entropy has
been gathered to initialise the /dev/urandom source, and fallback to the
next source in any error case.

Signed-off-by: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2026>
2020-05-15 13:37:20 +02:00
..
2020-03-28 21:36:54 +01:00
2020-04-16 14:48:40 +00:00
2019-10-10 16:33:04 -07:00
2019-08-08 22:02:54 +01:00
2018-10-10 13:13:12 -05:00
2019-09-19 19:56:22 +00:00
2019-03-11 13:13:52 -07:00
2019-03-11 13:13:52 -07:00
2019-08-02 18:38:52 +01:00
2019-09-06 00:45:11 +00:00
2017-11-09 11:57:21 +01:00
2020-04-15 21:10:11 +00:00
2020-04-21 11:09:03 -07:00
2019-05-31 19:14:30 +02:00
2017-09-03 09:05:23 +01:00
2019-03-14 22:41:08 +00:00
2020-05-13 23:36:44 +00:00
2020-05-13 23:36:44 +00:00
2020-01-23 17:06:57 +00:00