Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
71
func
init() { rand.Read(ρ) }
72
73
func
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.go
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected