Closed
Description
Right now we use libc++'s impl, which accesses /dev/random
as a file. That brings in the filesystem support code which is bad for code size, and also as filesystem code it currently gets proxied to the main thread.
Instead, a simple C++ impl could just call emscripten_random
which calls into JS.
This might be upstreamable into libc++. If not, maybe we can have a directory of things that override the default files in libc++?