hurd: Make getrandom a stub inside the random translator
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Thu, 30 Dec 2021 20:25:24 +0000 (21:25 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Fri, 31 Dec 2021 07:54:41 +0000 (08:54 +0100)
commit33e8e95cbd0d6724553f390142d4b11352d59dd0
tree62f19fa9400d3dd952525fefa09c56703d06ec4f
parent4dfa8f4870c862540bd9b09130a68664d45f1569
hurd: Make getrandom a stub inside the random translator

glibc uses /dev/urandom for getrandom(), and from version 2.34 malloc
initialization uses it. We have to detect when we are running the random
translator itself, in which case we can't read ourself.
sysdeps/mach/hurd/getrandom.c