[PATCH 2/2] Use getrandom on try_tempname_len [BZ #15813]

Jakub Jelinek jakub@redhat.com
Thu Sep 10 12:33:55 GMT 2020


On Thu, Sep 10, 2020 at 09:27:44AM -0300, Adhemerval Zanella wrote:
> > As I wrote in bugzilla, I think it would be better to use clock_gettime64 ^
> > pid based "random" source for the initial randomness value, so that it
> > wouldn't deplete the random entropy pool, and use it only for the retries
> > (so only in the unlikely case the file exists already).
>  
> What about the patch below? It tries to get the initial state randomness

LGTM (but not an official patch review for glibc).

	Jakub



More information about the Libc-alpha mailing list