aboutsummaryrefslogtreecommitdiff
path: root/trans/random.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-01-01 18:03:25 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-01-01 18:05:00 +0100
commit8c5eb657ff196a31a3230652823221f3fe805d73 (patch)
tree56f78272258f139f1c3ad6e13689f8a579393752 /trans/random.c
parentedf389d0768ccb53c6667ddc2792da618cf40cec (diff)
downloadhurd-8c5eb657ff196a31a3230652823221f3fe805d73.tar.gz
hurd-8c5eb657ff196a31a3230652823221f3fe805d73.tar.bz2
hurd-8c5eb657ff196a31a3230652823221f3fe805d73.zip
random: export __trivfs_server_name
Making glibc access trivfs_server_name would violate namespace constraints, so we need to use a out-of-standard name.
Diffstat (limited to 'trans/random.c')
-rw-r--r--trans/random.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/trans/random.c b/trans/random.c
index ae04e14f..e85bf65e 100644
--- a/trans/random.c
+++ b/trans/random.c
@@ -46,6 +46,9 @@
char *trivfs_server_name = "random";
+/* Referred by glibc to avoid using /dev/random for malloc() initialization */
+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. */