MCPcopy Create free account
hub / github.com/C2SP/CCTV / randomPoly

Function randomPoly

ML-KEM/modulus/modulus.go:73–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71func init() { rand.Read(ρ) }
72
73func randomPoly() [n]uint16 {
74 var f [n]uint16
75 for i := range f {
76 f[i] = uint16(rand.Intn(q))
77 }
78 return f
79}
80
81// polyByteEncode appends the 384-byte encoding of f to b.
82//

Callers 1

modulus.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected