mirror of
https://sourceware.org/git/glibc.git
synced 2026-01-06 11:51:29 +03: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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user