From 19a4a1155909fa3870a5cbe0c6d02eb7f7a45af2 Mon Sep 17 00:00:00 2001 From: David Florness Date: Sun, 31 Jan 2021 11:15:34 -0500 Subject: [PATCH] Fix grammar in function doc --- math/poly.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/math/poly.go b/math/poly.go index 6187ad6..1bdd25a 100644 --- a/math/poly.go +++ b/math/poly.go @@ -29,9 +29,9 @@ func NewPoly(coefficients []*big.Int, ballot []byte) *Poly { return &Poly{constant, coefficients} } -// creates a random polynomial of the given degree, uses at least `entropy' bits -// of entropy for the random coefficients, and assigns the ballot to the -// constant term +// NewRandomPoly generates a random `degree' degree polynomial, using at least +// `entropy' bits of entropy for the random coefficients and inserting `ballot' +// as the constant term. func NewRandomPoly(degree uint, entropy uint, ballot []byte) *Poly { coefficients := make([]*big.Int, degree) -- 2.38.4