]> Savannah Git Hosting - gnulib.git/commit
tempname: use getrandom, not getentropy
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 1 Jun 2020 22:58:29 +0000 (15:58 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 1 Jun 2020 22:58:51 +0000 (15:58 -0700)
commit5a5636ae89d81dc305b2abc15c2185a4e8f1cf2f
tree3d24fbf9f3efec06469704e063b5a6e52d4dade9
parent10cf67b5e33312066500ac9defbd4c0b311f57c6
tempname: use getrandom, not getentropy

This removes a dependency, as getentropy depends on getrandom.
* lib/tempname.c: Include sys/random.h instead of unistd.h.
(RANDOM_BITS) [!_LIBC]: Use getrandom, not getentropy.
* modules/tempname (Depends-on): Depend on getrandom, not getentropy.
ChangeLog
lib/tempname.c
modules/tempname