upstream: https://github.com/mirage/mirage-crypto
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ocaml-crypto/rng: rename crypto-rng.unix to nox-crypto-rng.unix in error text

The package was renamed in 46ba2cfe7 but the unseeded-generator and
no-default-generator panic messages still pointed users at the upstream
'crypto-rng.unix' name. Update both messages and the doc reference in
crypto_rng.mli to the post-rename name. Drop the
'auto-initializes on load' phrasing since the unix sublib no longer
auto-runs at module load — callers must invoke Crypto_rng_unix.use_default
explicitly.

+5 -7
+1 -1
rng/crypto_rng.mli
··· 29 29 is not thread-safe} (it is on Miou_unix via Pfortuna). 30 30 31 31 Suitable entropy feeding of generators is provided by 32 - {{!Crypto_rng_unix}crypto-rng.unix} (for Unix). The Mirage and Miou 32 + {{!Crypto_rng_unix}nox-crypto-rng.unix} (for Unix). The Mirage and Miou 33 33 sub-libraries from upstream mirage-crypto have been dropped in this fork. 34 34 35 35 The intention is that "initialize" in the respective sub-library is called
+4 -6
rng/rng.ml
··· 7 7 Printexc.register_printer (function 8 8 | Unseeded_generator -> 9 9 Some 10 - "Crypto_rng: generator not seeded. Add crypto-rng.unix to your \ 11 - dependencies (it auto-initializes on load), or call \ 12 - Crypto_rng_unix.use_default () explicitly." 10 + "Crypto_rng: generator not seeded. Add nox-crypto-rng.unix to your \ 11 + dependencies and call Crypto_rng_unix.use_default () at startup." 13 12 | No_default_generator -> 14 13 Some 15 - "Crypto_rng: no default generator. Add crypto-rng.unix to your \ 16 - dependencies (it auto-initializes on load), or call \ 17 - Crypto_rng_unix.use_default () explicitly." 14 + "Crypto_rng: no default generator. Add nox-crypto-rng.unix to your \ 15 + dependencies and call Crypto_rng_unix.use_default () at startup." 18 16 | _ -> None) 19 17 20 18 module type Generator = sig