maidsafe / rust_sodium

This crate is no longer maintained. Looking for maintainers.
BSD 3-Clause "New" or "Revised" License
77 stars 34 forks source link

Put 'init_with_rng' behind non-default feature gate #66

Closed Fraser999 closed 3 years ago

Fraser999 commented 6 years ago

This PR adds a single commit to #60.

Primarily it hides the slightly dangerous randombytes_implementation API behind a new feature seeded-rng which is disabled by default.

This has the side effect of allowing the rust_sodium-sys tests to all be properly initialised, since calling sodium_init() inside each now doesn't conflict with the test for init_with_rng().

S-Coyle commented 3 years ago

The rust_sodium crate is no longer maintained by MaidSafe, you should check whether it is actively maintained on Subspace as per the readme, or switch to a modern alternative.