目录结构调整

This commit is contained in:
John
2017-11-23 10:21:28 +08:00
parent c40a5bb4b4
commit c210bfcbdf
91 changed files with 10794 additions and 0 deletions

View File

@ -0,0 +1,20 @@
package main
import (
"strconv"
"fmt"
"gf/g/encoding/ghash"
)
func main () {
m := make(map[uint64]bool)
for i := 0; i < 100000000; i++ {
hash := ghash.BKDRHash64([]byte("key_" + strconv.Itoa(i)))
if _, ok := m[hash]; ok {
fmt.Printf("duplicated hash %d\n", hash)
} else {
m[hash] = true
}
}
}