From 4b9ff5b5d088d80472ce9e1994f7d577b0bd1c3a Mon Sep 17 00:00:00 2001 From: Jishnu Bhattacharya Date: Mon, 29 Sep 2025 18:12:21 +0400 Subject: [PATCH] Fix namespace of `IOError` in `random_seed` --- stdlib/Random/src/RNGs.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/Random/src/RNGs.jl b/stdlib/Random/src/RNGs.jl index 2ea2fb3a684df..6c8fc684d8e53 100644 --- a/stdlib/Random/src/RNGs.jl +++ b/stdlib/Random/src/RNGs.jl @@ -287,7 +287,7 @@ function random_seed() # almost surely always getting distinct seeds, while having them printed reasonably tersely return rand(RandomDevice(), UInt128) catch ex - ex isa IOError || rethrow() + ex isa Base.IOError || rethrow() @warn "Entropy pool not available to seed RNG; using ad-hoc entropy sources." return Libc.rand() end