Closed
Description
I think we can replace TLS for several targets by using a mutable static RawFd
initialized via std::sync::Once
. I think it should be safe to read from /dev/urandom
using a single file descriptor from several threads without any synchronization, but it's better to check it. A small experiment shows that reading a huge amount of random data in one thread does block other threads.
Metadata
Metadata
Assignees
Labels
No labels