{"modulePath":"github.phpd.cn/thought-machine/please","version":"v13.4.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package tools\n\n## Functions\n\n```go\nfunc AlternateHash(h []byte) uint32\n```\nAlternateHash returns the alternate point in our hash space for a given artifact hash, i.e. on the second node we'd replicate it to.\n\n```go\nfunc Hash(h []byte) uint32\n```\nHash returns the point in our hash space for a given artifact hash.\n\n```go\nfunc HashPoint(i, n int) uint32\n```\nHashPoint returns a point in our hash space for the ith of n nodes. Note that it is quite important that both client and server agree about the implementation of this function.\n\n","path":"github.phpd.cn/thought-machine/please/src/cache/tools","name":"tools","synopsis":"","isRedistributable":true}
