Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 281 for seed2 (0.05 sec)

  1. src/internal/chacha8rand/chacha8_amd64.s

    	INCL CX
    	MOVL CX, 4(SP)
    	INCL CX
    	MOVL CX, 8(SP)
    	INCL CX
    	MOVL CX, 12(SP)
    	MOVOU 0(SP), X12
    
    	// Load seed words into next two rows and into DI, SI, R8..R13
    	SEED(0, DI, X4)
    	SEED(1, SI, X5)
    	SEED(2, R8, X6)
    	SEED(3, R9, X7)
    	SEED(4, R10, X8)
    	SEED(5, R11, X9)
    	SEED(6, R12, X10)
    	SEED(7, R13, X11)
    
    	// Zeros for remaining two matrix entries.
    	// We have just enough XMM registers to hold the state,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  2. src/internal/chacha8rand/chacha8_generic.go

    //
    //	const1 const2 const3 const4
    //	seed   seed   seed   seed
    //	seed   seed   seed   seed
    //	counter64     0      0
    //
    // We use the same constants as ChaCha20 does, a random seed,
    // and a counter. Running ChaCha8 on this input produces
    // a 4x4 matrix of pseudo-random values with as much entropy
    // as the seed.
    //
    // Given SIMD registers that can hold N uint32s, it is possible
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:32:54 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  3. src/hash/maphash/maphash_runtime.go

    //go:linkname runtime_rand runtime.rand
    func runtime_rand() uint64
    
    //go:linkname runtime_memhash runtime.memhash
    //go:noescape
    func runtime_memhash(p unsafe.Pointer, seed, s uintptr) uintptr
    
    func rthash(buf []byte, seed uint64) uint64 {
    	if len(buf) == 0 {
    		return seed
    	}
    	len := len(buf)
    	// The runtime hasher only works on uintptr. For 64-bit
    	// architectures, we use the hasher directly. Otherwise,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  4. src/math/rand/gen_cooked.go

    func seedrand(x int32) int32 {
    	hi := x / q
    	lo := x % q
    	x = a*lo - r*hi
    	if x < 0 {
    		x += m
    	}
    	return x
    }
    
    func srand(seed int32) {
    	rngTap = 0
    	rngFeed = length - tap
    	seed %= m
    	if seed < 0 {
    		seed += m
    	} else if seed == 0 {
    		seed = 89482311
    	}
    	x := seed
    	for i := -20; i < length; i++ {
    		x = seedrand(x)
    		if i >= 0 {
    			var u int64
    			u = int64(x) << 20
    			x = seedrand(x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  5. src/math/rand/rng.go

    	rng.tap = 0
    	rng.feed = rngLen - rngTap
    
    	seed = seed % int32max
    	if seed < 0 {
    		seed += int32max
    	}
    	if seed == 0 {
    		seed = 89482311
    	}
    
    	x := int32(seed)
    	for i := -20; i < rngLen; i++ {
    		x = seedrand(x)
    		if i >= 0 {
    			var u int64
    			u = int64(x) << 40
    			x = seedrand(x)
    			u ^= int64(x) << 20
    			x = seedrand(x)
    			u ^= int64(x)
    			u ^= rngCooked[i]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 04 14:20:53 UTC 2023
    - 14.8K bytes
    - Viewed (0)
  6. guava/src/com/google/common/hash/Murmur3_128HashFunction.java

      private final int seed;
    
      Murmur3_128HashFunction(int seed) {
        this.seed = seed;
      }
    
      @Override
      public int bits() {
        return 128;
      }
    
      @Override
      public Hasher newHasher() {
        return new Murmur3_128Hasher(seed);
      }
    
      @Override
      public String toString() {
        return "Hashing.murmur3_128(" + seed + ")";
      }
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 20 18:43:59 UTC 2021
    - 5.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/hash/Murmur3_128HashFunction.java

      private final int seed;
    
      Murmur3_128HashFunction(int seed) {
        this.seed = seed;
      }
    
      @Override
      public int bits() {
        return 128;
      }
    
      @Override
      public Hasher newHasher() {
        return new Murmur3_128Hasher(seed);
      }
    
      @Override
      public String toString() {
        return "Hashing.murmur3_128(" + seed + ")";
      }
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 20 18:43:59 UTC 2021
    - 5.6K bytes
    - Viewed (0)
  8. src/internal/chacha8rand/rand_test.go

    			s.Refill()
    		}
    	}
    }
    
    func TestReseed(t *testing.T) {
    	var s State
    	s.Init(seed)
    	old := Seed(&s)
    	s.Reseed()
    	if Seed(&s) == old {
    		t.Errorf("Reseed did not change seed")
    	}
    }
    
    func BenchmarkBlock(b *testing.B) {
    	var seed [4]uint64
    	var blocks [32]uint64
    
    	for i := 0; i < b.N; i++ {
    		Block(&seed, &blocks, 0)
    	}
    	b.SetBytes(32 * 8)
    }
    
    func TestBlockGeneric(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 9.4K bytes
    - Viewed (0)
  9. src/runtime/hash32.go

    package runtime
    
    import "unsafe"
    
    func memhash32Fallback(p unsafe.Pointer, seed uintptr) uintptr {
    	a, b := mix32(uint32(seed), uint32(4^hashkey[0]))
    	t := readUnaligned32(p)
    	a ^= t
    	b ^= t
    	a, b = mix32(a, b)
    	a, b = mix32(a, b)
    	return uintptr(a ^ b)
    }
    
    func memhash64Fallback(p unsafe.Pointer, seed uintptr) uintptr {
    	a, b := mix32(uint32(seed), uint32(8^hashkey[0]))
    	a ^= readUnaligned32(p)
    	b ^= readUnaligned32(add(p, 4))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/hash/Murmur3_32HashFunction.java

      private final int seed;
      private final boolean supplementaryPlaneFix;
    
      Murmur3_32HashFunction(int seed, boolean supplementaryPlaneFix) {
        this.seed = seed;
        this.supplementaryPlaneFix = supplementaryPlaneFix;
      }
    
      @Override
      public int bits() {
        return 32;
      }
    
      @Override
      public Hasher newHasher() {
        return new Murmur3_32Hasher(seed);
      }
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Jun 15 20:59:00 UTC 2022
    - 11.9K bytes
    - Viewed (0)
Back to top