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.
20 lines
279 B
20 lines
279 B
11 months ago
|
package correlation
|
||
|
|
||
|
import "crypto/rand"
|
||
|
|
||
|
type CryptoRandSequencer struct{}
|
||
|
|
||
|
func (crs *CryptoRandSequencer) Next() []byte {
|
||
|
buf := make([]byte, 16)
|
||
|
read, err := rand.Read(buf)
|
||
|
if err != nil {
|
||
|
panic("not implemented")
|
||
|
}
|
||
|
|
||
|
if read != 16 {
|
||
|
panic("todo")
|
||
|
}
|
||
|
|
||
|
return buf
|
||
|
}
|