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:
Andreas Schwab 2024-09-25 11:49:30 +02:00
parent cc84cd389c
commit 5f62cf88c4

View File

@ -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;
}