mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Read /dev/urandom unbuffered
To avoid wasting entropy. Bug 593232.
This commit is contained in:
parent
3a47f48311
commit
3ba64e72cf
@ -181,6 +181,7 @@ g_rand_new (void)
|
||||
{
|
||||
int r;
|
||||
|
||||
setvbuf (dev_urandom, NULL, _IONBF, 0);
|
||||
do
|
||||
{
|
||||
errno = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user