mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-06 15:53:10 +00:00
Better generator_order per William's comment
This commit is contained in:
parent
84a71c9ca5
commit
a5206f97a2
@ -122,7 +122,7 @@ pub trait Field:
|
||||
}
|
||||
|
||||
fn generator_order(generator: Self) -> usize {
|
||||
Self::cyclic_subgroup_unknown_order(generator).len()
|
||||
generator.powers().skip(1).position(|y| y.is_one()).unwrap() + 1
|
||||
}
|
||||
|
||||
/// Computes a coset of a multiplicative subgroup whose order is known in advance.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user