[openssl/openssl] 1b025e: Allow `getentropy` for Emscripten
"'stevenwdv' via openssl-commits" <[email protected]> Wed, 08 Jul 2026 10:52:34 -0700
| Newsgroups | gmane.comp.encryption.openssl.cvs |
|---|---|
| Message-ID | <openssl/openssl/push/refs/heads/openssl-3.5/[email protected]> |
Branch: refs/heads/openssl-3.5
Home: https://github.com/openssl/openssl
Commit: 1b025efdcb76643323e9efb347896d12dfdc6291
https://github.com/openssl/openssl/commit/1b025efdcb76643323e9efb347896d12dfdc6291
Author: Steven WdV <[email protected]>
Date: 2026-07-08 (Wed, 08 Jul 2026)
Changed paths:
M providers/implementations/rands/seeding/rand_unix.c
Log Message:
-----------
Allow `getentropy` for Emscripten
Usually Emscripten emulates `/dev/urandom`, but in some cases,
like with `-sNODERAWFS`, it doesn't. This means that on non-Unix platforms,
where `/dev/urandom` does not exist on the host, OpenSSL will fail to seed
its PRNG. This fixes that by instead using the POSIX function it
implements, like which was already done for WASI.
See https://github.com/emscripten-core/emscripten/issues/9628#issuecomment-4892658766 for more context.
CLA: trivial
Reviewed-by: Kurt Roeckx <[email protected]>
Reviewed-by: Daniel Kubec <[email protected]>
Reviewed-by: Paul Dale <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
MergeDate: Wed Jul 8 17:50:39 2026
(Merged from https://github.com/openssl/openssl/pull/31882)
(cherry picked from commit dc219a04088d08de7df5afdb14263b3e9a4c7915)
To unsubscribe from these emails, change your notification settings at https://github.com/openssl/openssl/settings/notifications
--
You received this message because you are subscribed to the Google Groups "openssl-commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/a/openssl.org/d/msgid/openssl-commits/openssl/openssl/push/refs/heads/openssl-3.5/820784-1b025e%40github.com.