mirror of git://sourceware.org/git/glibc.git
Fix missing randomness in __gen_tempname (bug 32214)
Make sure to update the random value also if getrandom fails.
Fixes: 686d542025
("posix: Sync tempname with gnulib")
This commit is contained in:
parent
cc84cd389c
commit
5f62cf88c4
|
@ -117,6 +117,8 @@ random_bits (random_value *r, random_value s)
|
|||
succeed. */
|
||||
#if !_LIBC
|
||||
*r = mix_random_values (v, clock ());
|
||||
#else
|
||||
*r = v;
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue