Merge commit 'd7f78db121ee6f720e97401ded0c9c597d1a4857' into depends-updates-2

This commit is contained in:
Sean Bowe
2020-03-03 17:44:28 -07:00
5 changed files with 6 additions and 6 deletions

View File

@@ -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];