projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
3a47f48
)
Read /dev/urandom unbuffered
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 28 Aug 2009 02:59:05 +0000
(22:59 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 28 Aug 2009 02:59:05 +0000
(22:59 -0400)
To avoid wasting entropy. Bug 593232.
glib/grand.c
patch
|
blob
|
history
diff --git
a/glib/grand.c
b/glib/grand.c
index
55f8970
..
8edcca3
100644
(file)
--- a/
glib/grand.c
+++ b/
glib/grand.c
@@
-181,6
+181,7
@@
g_rand_new (void)
{
int r;
+ setvbuf (dev_urandom, NULL, _IONBF, 0);
do
{
errno = 0;