On 1/11/21 4:29 AM, Adhemerval Zanella wrote: > The idea is to always issue getrandom for __GT_DIR or __GT_FILE on first try, > as you suggested initially [1]. I followed your idea [2]:... > [1] https://sourceware.org/pipermail/libc-alpha/2020-September/117535.html > [2] https://sourceware.org/pipermail/libc-alpha/2020-September/117539.html Ah, thanks, I'd forgotten about that conversation. I looked at the patch again. A couple of small things. First, it uses bool so needs to include stdbool.h. Second, the generated code's a bit smaller if we call random_bits only once. I added those two changes and installed the attached patch to Gnulib master on savannah, with the idea being that Gnulib's tempname.c can be identical to glibc's.