From 34c71acbc9ae19575aa11a1b0f79b39ba02ba784 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Thu, 30 Dec 2021 21:03:55 +0100 Subject: random: Add a trivfs_server_name glibc uses /dev/urandom for getrandom(), and from version 2.34 malloc initialization uses it. We need to be able to know whether we are running the random translator itself, in which case we can't read ourself. --- trans/random.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'trans/random.c') diff --git a/trans/random.c b/trans/random.c index f0b99dd4..b409d39f 100644 --- a/trans/random.c +++ b/trans/random.c @@ -44,6 +44,8 @@ +char *trivfs_server_name = "random"; + /* Entropy pool. We use one of the SHAKE algorithms from the Keccak family. Being a sponge construction, it allows the extraction of arbitrary amounts of pseudorandom data. */ -- cgit v1.2.3