Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 281 for seed2 (0.05 sec)

  1. guava/src/com/google/common/hash/FarmHashFingerprint64.java

          byte[] bytes, int offset, long seedA, long seedB, long[] output) {
        long part1 = load64(bytes, offset);
        long part2 = load64(bytes, offset + 8);
        long part3 = load64(bytes, offset + 16);
        long part4 = load64(bytes, offset + 24);
    
        seedA += part1;
        seedB = rotateRight(seedB + seedA + part4, 21);
        long c = seedA;
        seedA += part2;
        seedA += part3;
        seedB += rotateRight(seedA, 44);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Apr 01 22:39:48 UTC 2022
    - 7.6K bytes
    - Viewed (0)
  2. guava/src/com/google/common/hash/Fingerprint2011.java

          byte[] bytes, int offset, long seedA, long seedB, long[] output) {
        long part1 = load64(bytes, offset);
        long part2 = load64(bytes, offset + 8);
        long part3 = load64(bytes, offset + 16);
        long part4 = load64(bytes, offset + 24);
    
        seedA += part1;
        seedB = rotateRight(seedB + seedA + part4, 51);
        long c = seedA;
        seedA += part2;
        seedA += part3;
        seedB += rotateRight(seedA, 23);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Dec 28 17:50:25 UTC 2021
    - 6.5K bytes
    - Viewed (0)
  3. tests/fuzz/testdata/FuzzConfigValidation2/seed1

    AdamKorcz <******@****.***> 1625677673 +0100
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jul 07 17:07:53 UTC 2021
    - 120 bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/schema/schema_generated.h

      }
    };
    
    inline ::flatbuffers::Offset<RandomOptions> CreateRandomOptions(
        ::flatbuffers::FlatBufferBuilder &_fbb,
        int64_t seed = 0,
        int64_t seed2 = 0) {
      RandomOptionsBuilder builder_(_fbb);
      builder_.add_seed2(seed2);
      builder_.add_seed(seed);
      return builder_.Finish();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 1M bytes
    - Viewed (0)
  5. src/hash/maphash/maphash.go

    	h.n = len(s)
    	return size, nil
    }
    
    // Seed returns h's seed value.
    func (h *Hash) Seed() Seed {
    	h.initSeed()
    	return h.seed
    }
    
    // SetSeed sets h to use seed, which must have been returned by [MakeSeed]
    // or by another [Hash.Seed] method.
    // Two [Hash] objects with the same seed behave identically.
    // Two [Hash] objects with different seeds will very likely behave differently.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 19:15:34 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  6. src/internal/chacha8rand/chacha8.go

    }
    
    // Init seeds the State with the given seed value.
    func (s *State) Init(seed [32]byte) {
    	s.Init64([4]uint64{
    		byteorder.LeUint64(seed[0*8:]),
    		byteorder.LeUint64(seed[1*8:]),
    		byteorder.LeUint64(seed[2*8:]),
    		byteorder.LeUint64(seed[3*8:]),
    	})
    }
    
    // Init64 seeds the state with the given seed value.
    func (s *State) Init64(seed [4]uint64) {
    	s.seed = seed
    	block(&s.seed, &s.buf, 0)
    	s.c = 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:47:29 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  7. src/crypto/ed25519/ed25519.go

    // with RFC 8032. RFC 8032's private keys correspond to seeds in this
    // package.
    func NewKeyFromSeed(seed []byte) PrivateKey {
    	// Outline the function body so that the returned key can be stack-allocated.
    	privateKey := make([]byte, PrivateKeySize)
    	newKeyFromSeed(privateKey, seed)
    	return privateKey
    }
    
    func newKeyFromSeed(privateKey, seed []byte) {
    	if l := len(seed); l != SeedSize {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  8. src/hash/maphash/maphash_test.go

    			h.Sum64()
    		}
    	})
    
    	b.Run("Bytes", func(b *testing.B) {
    		b.SetBytes(int64(size))
    		seed := h.Seed()
    		for i := 0; i < b.N; i++ {
    			Bytes(seed, buf)
    		}
    	})
    
    	b.Run("String", func(b *testing.B) {
    		b.SetBytes(int64(size))
    		seed := h.Seed()
    		for i := 0; i < b.N; i++ {
    			String(seed, s)
    		}
    	})
    }
    
    func BenchmarkHash(b *testing.B) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/rand/rand.go

    func Int63nRange(min, max int64) int64 {
    	rng.Lock()
    	defer rng.Unlock()
    	return rng.rand.Int63n(max-min) + min
    }
    
    // Seed seeds the rng with the provided seed.
    func Seed(seed int64) {
    	rng.Lock()
    	defer rng.Unlock()
    
    	rng.rand = rand.New(rand.NewSource(seed))
    }
    
    // Perm returns, as a slice of n ints, a pseudo-random permutation of the integers [0,n)
    // from the default Source.
    func Perm(n int) []int {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 11 11:02:01 UTC 2018
    - 3.5K bytes
    - Viewed (0)
  10. src/math/rand/rand.go

    	r.lk.Unlock()
    	return
    }
    
    func (r *lockedSource) Seed(seed int64) {
    	r.lk.Lock()
    	r.seed(seed)
    	r.lk.Unlock()
    }
    
    // seedPos implements Seed for a lockedSource without a race condition.
    func (r *lockedSource) seedPos(seed int64, readPos *int8) {
    	r.lk.Lock()
    	r.seed(seed)
    	*readPos = 0
    	r.lk.Unlock()
    }
    
    // seed seeds the underlying source.
    // The caller must have locked r.lk.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:09:08 UTC 2024
    - 16.9K bytes
    - Viewed (0)
Back to top