Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for sipHashMod (0.06 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. docs/debugging/hash-set/main.go

    	"os"
    	"strings"
    
    	"github.com/dchest/siphash"
    	"github.com/google/uuid"
    )
    
    // hashes the key returning an integer based on the input algorithm.
    // This function currently supports
    // - SIPMOD
    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
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 3.7K bytes
    - Click Count (0)
Back to Top