Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for sipHash (0.07 sec)

  1. cmd/erasure-sets.go

    func sipHashMod(key string, cardinality int, id [16]byte) int {
    	if cardinality <= 0 {
    		return -1
    	}
    	// use the faster version as per siphash docs
    	// https://github.com/dchest/siphash#usage
    	k0, k1 := binary.LittleEndian.Uint64(id[0:8]), binary.LittleEndian.Uint64(id[8:16])
    	sum64 := siphash.Hash(k0, k1, []byte(key))
    	return int(sum64 % uint64(cardinality))
    }
    
    func crcHashMod(key string, cardinality int) int {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 27 10:41:37 UTC 2024
    - 37K bytes
    - Viewed (1)
  2. go.mod

    	github.com/cespare/xxhash/v2 v2.3.0
    	github.com/cheggaaa/pb v1.0.29
    	github.com/coreos/go-oidc/v3 v3.11.0
    	github.com/coreos/go-systemd/v22 v22.5.0
    	github.com/cosnicolaou/pbzip2 v1.0.3
    	github.com/dchest/siphash v1.2.3
    	github.com/dustin/go-humanize v1.0.1
    	github.com/eclipse/paho.mqtt.golang v1.5.0
    	github.com/elastic/go-elasticsearch/v7 v7.17.10
    	github.com/fatih/color v1.17.0
    	github.com/felixge/fgprof v0.9.4
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  3. go.sum

    github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
    github.com/dchest/siphash v1.2.3 h1:QXwFc8cFOR2dSa/gE6o/HokBMWtLUaNDVd+22aKHeEA=
    github.com/dchest/siphash v1.2.3/go.mod h1:0NvQU092bT0ipiFN++/rXm69QG9tVxLAlQHIXMPAkHc=
    github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 h1:rpfIENRNNilwHwZeG5+P150SMrnNEcHYvcCuK6dPZSg=
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 78K bytes
    - Viewed (0)
  4. CREDITS

    OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
    
    ================================================================
    
    github.com/dchest/siphash
    https://github.com/dchest/siphash
    ----------------------------------------------------------------
    Creative Commons Legal Code
    
    CC0 1.0 Universal
    
        CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 26 15:03:08 UTC 2024
    - 1.6M bytes
    - Viewed (0)
Back to top