[Bug libc/15813] Multiple issues in __gen_tempname
jakub at redhat dot com
sourceware-bugzilla@sourceware.org
Wed Sep 9 12:44:56 GMT 2020
https://sourceware.org/bugzilla/show_bug.cgi?id=15813
--- Comment #9 from Jakub Jelinek <jakub at redhat dot com> ---
The non-_LIBC fallback is actually worse (gettimeofday with usec precision).
Anyway, I think the usec timer with pid is just fine for the first attempt, so
reading from /dev/urandom or using similar syscall is I think a waste of time
for the common case, it is just in the unlikely case that the file exists that
perhaps something more expensive is needed.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list