Merge commit 'd7f78db121ee6f720e97401ded0c9c597d1a4857' into depends-updates-2
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "ff_derive"
|
||||
version = "0.4.0"
|
||||
version = "0.4.1"
|
||||
authors = ["Sean Bowe <ewillbefull@gmail.com>"]
|
||||
description = "Procedural macro library used to build custom prime field implementations"
|
||||
documentation = "https://docs.rs/ff/"
|
||||
|
||||
@@ -877,7 +877,7 @@ fn prime_field_impl(
|
||||
|
||||
impl ::ff::Field for #name {
|
||||
/// Computes a uniformly random element using rejection sampling.
|
||||
fn random<R: ::rand_core::RngCore>(rng: &mut R) -> Self {
|
||||
fn random<R: ::rand_core::RngCore + ?std::marker::Sized>(rng: &mut R) -> Self {
|
||||
loop {
|
||||
let mut tmp = {
|
||||
let mut repr = [0u64; #limbs];
|
||||
|
||||
Reference in New Issue
Block a user