mirror of https://github.com/ethereum/go-ethereum
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.
9 lines
339 B
9 lines
339 B
6 years ago
|
package bigcache
|
||
|
|
||
|
// Hasher is responsible for generating unsigned, 64 bit hash of provided string. Hasher should minimize collisions
|
||
|
// (generating same hash for different strings) and while performance is also important fast functions are preferable (i.e.
|
||
|
// you can use FarmHash family).
|
||
|
type Hasher interface {
|
||
|
Sum64(string) uint64
|
||
|
}
|