From edf389d0768ccb53c6667ddc2792da618cf40cec Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Fri, 31 Dec 2021 08:50:48 +0100 Subject: random: try opening time from gnumach before from /dev/time The system-wide random translator can access time from gnumach, while /dev/time comes from storeio, and its libc initialization (starting from glibc 2.34) uses /dev/random, which was thus bringing an initialization loop. --- trans/random.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'trans/random.c') diff --git a/trans/random.c b/trans/random.c index b409d39f..ae04e14f 100644 --- a/trans/random.c +++ b/trans/random.c @@ -77,9 +77,9 @@ pool_initialize (void) error (1, 0, "Initializing hash failed: %s", gcry_strerror (cerr)); - err = maptime_map (0, NULL, &mtime); + err = maptime_map (1, NULL, &mtime); if (err) - err = maptime_map (1, NULL, &mtime); + err = maptime_map (0, NULL, &mtime); if (err) error (1, err, "Failed to map time device"); } -- cgit v1.2.3