package main import ( "crypto/rand" "fmt" "io" ) func main() { buf := make([]byte, 8) _, _ = io.ReadFull(rand.Reader, buf) fmt.Printf("%x", buf) }