Skip to content

Commit

Permalink
check that random points are different in TestG1Ops
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincharm committed Feb 16, 2024
1 parent 8d239d2 commit 87b28bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pairing/bn254/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ func TestG1Ops(t *testing.T) {
suite := NewSuite()
a := suite.G1().Point().Pick(random.New())
b := suite.G1().Point().Pick(random.New())
if a.Equal(b) {
t.Fatal("bn254.G1: generated 2 equivalent random points")
}
c := a.Clone()
a.Neg(a)
a.Neg(a)
Expand Down

0 comments on commit 87b28bb

Please sign in to comment.