You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
272 B
19 lines
272 B
11 months ago
|
package correlation
|
||
|
|
||
|
import "math/rand"
|
||
|
|
||
|
type MathRandSequencer struct{}
|
||
|
|
||
|
func (mrs *MathRandSequencer) Next() []byte {
|
||
|
buf := make([]byte, 16)
|
||
|
read, err := rand.Read(buf)
|
||
|
if err != nil {
|
||
|
panic("not implemented")
|
||
|
}
|
||
|
|
||
|
if read != 16 {
|
||
|
panic("todo")
|
||
|
}
|
||
|
return buf
|
||
|
}
|