Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently, CI uses a mix of stable and nightly toolchains. Nightly is included primarily to support
no_std
checks, but this is only necessary due to arand
test dependency.This PR makes changes to allow a move to stable across the board. To do this, it replaces the use of
rand
in all tests with a random number generator fromrand_chacha
, which has the side effect of making all tests deterministic.However, due to a desire to keep a secure random number generator in doctests, we add an optional
rand
feature whose only role is to enablerand_core::OsRng
. Doctests that use this are gated on this feature.The
no_std
target has been changed towasm32-unknown-unknown
for easier local testing; it should still meet the goal.Finally, note that some formatting rules are not available on stable, so we still use the latest nightly for this.