Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestUnseededHash (0.33 sec)

  1. src/hash/maphash/maphash_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package maphash
    
    import (
    	"bytes"
    	"fmt"
    	"hash"
    	"testing"
    )
    
    func TestUnseededHash(t *testing.T) {
    	m := map[uint64]struct{}{}
    	for i := 0; i < 1000; i++ {
    		h := new(Hash)
    		m[h.Sum64()] = struct{}{}
    	}
    	if len(m) < 900 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 5.2K bytes
    - Viewed (0)
Back to top