mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
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
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue