Absolute path to rand.

This commit is contained in:
Sean Bowe 2017-06-26 12:07:23 -06:00
parent 13a822f994
commit 03952704b7
1 changed files with 2 additions and 2 deletions

View File

@ -503,9 +503,9 @@ fn prime_field_impl(
}
}
impl Rand for #name {
impl ::rand::Rand for #name {
/// Computes a uniformly random element using rejection sampling.
fn rand<R: Rng>(rng: &mut R) -> Self {
fn rand<R: ::rand::Rng>(rng: &mut R) -> Self {
loop {
let mut tmp = #name(#repr::rand(rng));
for _ in 0..REPR_SHAVE_BITS {