Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@cronokirby
Copy link
Collaborator

Closes #1088.

This also modifies things to avoid the use of Rng, preferring RngCore instead (just within this crate), and the use of RngCore + CryptoRng to instead use CryptoRngCore.

bytes = { workspace = true }
thiserror = { workspace = true }
rand = { workspace = true }
rand = { workspace = true, features = ["std_rng"] }
Copy link
Contributor

@patrick-ogrady patrick-ogrady Sep 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for no_std, I think we explicitly enable this feature later?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I think this might've slipped through.

Closes #1088.

This also modifies things to avoid the use of `Rng`, preferring `RngCore`
instead (just within this crate), and the use of `RngCore + CryptoRng`
to instead use `CryptoRngCore`.
@patrick-ogrady patrick-ogrady merged commit 81ad342 into main Sep 3, 2025
52 of 53 checks passed
@patrick-ogrady patrick-ogrady deleted the cronokirby/cryptorng branch September 3, 2025 23:06
@codecov
Copy link

codecov bot commented Sep 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.07%. Comparing base (2ad6031) to head (f994887).
⚠️ Report is 3 commits behind head on main.

@@           Coverage Diff            @@
##             main    #1542    +/-   ##
========================================
  Coverage   92.06%   92.07%            
========================================
  Files         283      284     +1     
  Lines       73182    73354   +172     
========================================
+ Hits        67378    67541   +163     
- Misses       5804     5813     +9     
Files with missing lines Coverage Δ
cryptography/src/blake3/mod.rs 82.07% <100.00%> (ø)
cryptography/src/bls12381/dkg/dealer.rs 100.00% <100.00%> (ø)
cryptography/src/bls12381/dkg/ops.rs 94.65% <100.00%> (ø)
cryptography/src/bls12381/primitives/group.rs 89.33% <100.00%> (ø)
cryptography/src/bls12381/primitives/ops.rs 96.99% <100.00%> (ø)
cryptography/src/bls12381/primitives/poly.rs 98.46% <100.00%> (ø)
cryptography/src/bls12381/primitives/variant.rs 92.85% <100.00%> (ø)
cryptography/src/bls12381/scheme.rs 89.35% <100.00%> (ø)
cryptography/src/bls12381/tle.rs 94.65% <100.00%> (ø)
cryptography/src/ed25519/scheme.rs 90.51% <100.00%> (ø)
... and 3 more

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 60b9b5a...f994887. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[cryptography] Properly Apply CrytpoRng

2 participants