Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 88 for strhash (0.4 sec)

  1. src/cmd/go/internal/modfetch/coderepo_test.go

    						}
    						z.Close()
    						if !reflect.DeepEqual(names, tt.zip) {
    							t.Fatalf("zip = %v\nwant %v\n", names, tt.zip)
    						}
    					}
    
    					if needHash {
    						sum, err := dirhash.HashZip(zipfile, dirhash.Hash1)
    						if err != nil {
    							t.Errorf("repo.Zip(%q): %v", tt.version, err)
    						} else if sum != tt.zipSum {
    							t.Errorf("repo.Zip(%q): got file with sum %q, want %q", tt.version, sum, tt.zipSum)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 18 20:10:14 UTC 2023
    - 29.4K bytes
    - Viewed (0)
  2. 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 Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 37.7K bytes
    - Viewed (0)
  3. docs/distributed/DESIGN.md

    ```go
    // hashes the key returning an integer.
    func sipHashMod(key string, cardinality int, id [16]byte) int {
            if cardinality <= 0 {
                    return -1
            }
            sip := siphash.New(id[:])
            sip.Write([]byte(key))
            return int(sip.Sum64() % uint64(cardinality))
    }
    ```
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Aug 15 23:04:20 UTC 2023
    - 8K bytes
    - Viewed (0)
  4. cmd/global-heal.go

    				return
    			}
    
    			// We might land at .metacache, .trash, .multipart
    			// no need to heal them skip, only when bucket
    			// is '.minio.sys'
    			if bucket == minioMetaBucket {
    				if wildcard.Match("buckets/*/.metacache/*", entry.name) {
    					return
    				}
    				if wildcard.Match("tmp/.trash/*", entry.name) {
    					return
    				}
    				if wildcard.Match("multipart/*", entry.name) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 31 14:48:50 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  5. pilot/pkg/networking/util/util.go

    	"istio.io/istio/pkg/config"
    	kubelabels "istio.io/istio/pkg/kube/labels"
    	"istio.io/istio/pkg/log"
    	pm "istio.io/istio/pkg/model"
    	"istio.io/istio/pkg/proto/merge"
    	"istio.io/istio/pkg/util/strcase"
    	"istio.io/istio/pkg/wellknown"
    )
    
    const (
    	// BlackHoleCluster to catch traffic from routes with unresolved clusters. Traffic arriving here goes nowhere.
    	BlackHoleCluster = "BlackHoleCluster"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  6. src/cmd/go/internal/modindex/read.go

    	fmt.Fprintf(h, "module index %s %s %v\n", runtime.Version(), indexVersion, modroot)
    	return h.Sum(), nil
    }
    
    const modTimeCutoff = 2 * time.Second
    
    // dirHash returns an ActionID corresponding to the state of the package
    // located at filesystem path pkgdir.
    func dirHash(modroot, pkgdir string) (cache.ActionID, error) {
    	h := cache.NewHash("moduleIndex")
    	fmt.Fprintf(h, "modroot %s\n", modroot)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  7. hack/tools/go.mod

    	github.com/davecgh/go-spew v1.1.1 // indirect
    	github.com/denis-tingaikin/go-header v0.4.3 // indirect
    	github.com/dnephin/pflag v1.0.7 // indirect
    	github.com/esimonov/ifshort v1.0.4 // indirect
    	github.com/ettle/strcase v0.2.0 // indirect
    	github.com/fatih/color v1.16.0 // indirect
    	github.com/fatih/structtag v1.2.0 // indirect
    	github.com/firefart/nonamedreturns v1.0.4 // indirect
    	github.com/fsnotify/fsnotify v1.5.4 // indirect
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  8. src/runtime/debugcall.go

    		// Mark the calling goroutine as being at an async
    		// safe-point, since it has a few conservative frames
    		// at the bottom of the stack. This also prevents
    		// stack shrinks.
    		gp.asyncSafePoint = true
    
    		// Stash newg away so we can execute it below (mcall's
    		// closure can't capture anything).
    		gp.schedlink.set(newg)
    	})
    
    	// Switch to the new goroutine.
    	mcall(func(gp *g) {
    		// Get newg.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 20:50:21 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/dump/dump_test.go

    		{map[string]embedwrap{"key": tebw}, "(map[string]dump.embedwrap)map[key:{embed:(dump.embed){s:(string)test} e:(*dump.embed){s:(string)test}}]"},
    	}
    
    	for i, tc := range testCases {
    		s := ForHash(tc.a)
    		if tc.want != s {
    			t.Errorf("[%d]:\n\texpected %q\n\tgot      %q", i, tc.want, s)
    		}
    	}
    }
    
    func TestOneLine(t *testing.T) {
    	tcs := customString("test")
    	tpcs := pCustomString("&test")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 27 01:24:22 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  10. src/cmd/link/elf_test.go

    				var ret uint64
    				for _, s := range ef.Sections {
    					if s.Flags&elf.SHF_ALLOC == 0 {
    						continue
    					}
    					switch s.Type {
    					case elf.SHT_DYNSYM, elf.SHT_STRTAB, elf.SHT_REL, elf.SHT_RELA, elf.SHT_HASH, elf.SHT_GNU_HASH, elf.SHT_GNU_VERDEF, elf.SHT_GNU_VERNEED, elf.SHT_GNU_VERSYM:
    						ret += s.Size
    					}
    					if s.Flags&elf.SHF_WRITE != 0 && (strings.Contains(s.Name, ".got") || strings.Contains(s.Name, ".plt")) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 16:34:01 UTC 2023
    - 13.7K bytes
    - Viewed (0)
Back to top