dummy-data: change to generate binary names
This commit is contained in:
parent
767eaa0a47
commit
40e84ac230
@ -1,7 +1,7 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
//"fmt"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
@ -9,7 +9,10 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func random_name() string {
|
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 {
|
func fill_bucket(tx *bolt.Tx, bucket *bolt.Bucket) error {
|
||||||
|
Loading…
Reference in New Issue
Block a user