dummy-data: change to generate binary names

This commit is contained in:
mappu 2017-06-19 20:45:26 +12:00
parent 767eaa0a47
commit 40e84ac230

View File

@ -1,7 +1,7 @@
package main
import (
"fmt"
//"fmt"
"math/rand"
"os"
@ -9,7 +9,10 @@ import (
)
func random_name() string {
return fmt.Sprintf("%08x-%08x-%08x", rand.Int63(), rand.Int63(), rand.Int63())
ret := make([]byte, 12)
rand.Read(ret)
return string(ret)
//return fmt.Sprintf("%08x-%08x-%08x", rand.Int63(), rand.Int63(), rand.Int63())
}
func fill_bucket(tx *bolt.Tx, bucket *bolt.Bucket) error {