Skip to content

Commit

Permalink
relax Sized requirements on rng
Browse files Browse the repository at this point in the history
  • Loading branch information
baloo committed Feb 26, 2025
1 parent c734f7f commit 4ae604c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ pub trait Field:
const ONE: Self;

/// Returns an element chosen uniformly at random using a user-provided RNG.
fn random(rng: impl RngCore) -> Self;
fn random<R: RngCore + ?Sized>(rng: &mut R) -> Self;

/// Returns true iff this element is zero.
fn is_zero(&self) -> Choice {
Expand Down

0 comments on commit 4ae604c

Please sign in to comment.