~edwargix/tallyard

19a4a1155909fa3870a5cbe0c6d02eb7f7a45af2 — David Florness 4 years ago bd9d68d
Fix grammar in function doc
1 files changed, 3 insertions(+), 3 deletions(-)

M math/poly.go
M math/poly.go => math/poly.go +3 -3
@@ 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)