mirror of
https://github.com/Qortal/pirate-librustzcash.git
synced 2025-11-03 04:47:02 +00:00
Absolute path to rand.
This commit is contained in:
@@ -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.
|
/// 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 {
|
loop {
|
||||||
let mut tmp = #name(#repr::rand(rng));
|
let mut tmp = #name(#repr::rand(rng));
|
||||||
for _ in 0..REPR_SHAVE_BITS {
|
for _ in 0..REPR_SHAVE_BITS {
|
||||||
|
|||||||
Reference in New Issue
Block a user