Correct 2/3rds definitions throughout the codebase

The prior formula failed for some values, such as 20.
20 / 3 = 6, * 2 = 12, + 1 = 13. 13 is 65%, not >= 67.
This commit is contained in:
Luke Parker
2023-05-10 06:29:19 -04:00
parent ffea02dfbf
commit 89974c529a
2 changed files with 2 additions and 2 deletions

View File

@@ -88,7 +88,7 @@ impl TributarySpec {
}
pub fn t(&self) -> u16 {
(2 * (self.n() / 3)) + 1
((2 * self.n()) / 3) + 1
}
pub fn i(&self, key: <Ristretto as Ciphersuite>::G) -> Option<Participant> {