[openssl/openssl] 4e2e6f: Allow `getentropy` for Emscripten

"'stevenwdv' via openssl-commits" <[email protected]> Wed, 08 Jul 2026 10:51:35 -0700
Newsgroups gmane.comp.encryption.openssl.cvs
Message-ID <openssl/openssl/push/refs/heads/master/[email protected]>
  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 4e2e6f4174bb4098727314afea8e8decb80c0d92
      https://github.com/openssl/openssl/commit/4e2e6f4174bb4098727314afea8e8decb80c0d92
  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/master/11889a-4e2e6f%40github.com.