Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 111 for SHUFFLE (0.09 sec)

  1. src/crypto/sha1/sha1block_386.s

    	MIX(a, b, c, d, e, 0x5A827999)
    
    #define ROUND1x(a, b, c, d, e, index) \
    	SHUFFLE(index, e); \
    	FUNC1(a, b, c, d, e); \
    	MIX(a, b, c, d, e, 0x5A827999)
    
    #define ROUND2(a, b, c, d, e, index) \
    	SHUFFLE(index, e); \
    	FUNC2(a, b, c, d, e); \
    	MIX(a, b, c, d, e, 0x6ED9EBA1)
    
    #define ROUND3(a, b, c, d, e, index) \
    	SHUFFLE(index, e); \
    	FUNC3(a, b, c, d, e); \
    	MIX(a, b, c, d, e, 0x8F1BBCDC)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 6K bytes
    - Viewed (0)
  2. src/vendor/golang.org/x/crypto/chacha20/chacha_s390x.s

    	BNE loop
    
    	// decrement length
    	ADD $-256, R4
    
    	// rearrange vectors
    	SHUFFLE(X0, X1, X2, X3, M0, M1, M2, M3)
    	ADDV(J0, X0, X1, X2, X3)
    	SHUFFLE(X4, X5, X6, X7, M0, M1, M2, M3)
    	ADDV(KEY0, X4, X5, X6, X7)
    	SHUFFLE(X8, X9, X10, X11, M0, M1, M2, M3)
    	ADDV(KEY1, X8, X9, X10, X11)
    	VAF CTR, X12, X12
    	SHUFFLE(X12, X13, X14, X15, M0, M1, M2, M3)
    	ADDV(NONCE, X12, X13, X14, X15)
    
    	// increment counters
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  3. pkg/test/loadbalancersim/loadbalancer/roundrobin.go

    	var lbConns []*WeightedConnection
    	for _, conn := range conns {
    		for i := uint32(0); i < conn.Weight; i++ {
    			lbConns = append(lbConns, conn)
    		}
    	}
    
    	// Shuffle the connections.
    	rand.Shuffle(len(lbConns), func(i, j int) {
    		lbConns[i], lbConns[j] = lbConns[j], lbConns[i]
    	})
    
    	return &roundRobin{
    		weightedConnections: newLBConnection("RoundRobinLB", lbConns),
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 03 18:19:25 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  4. src/math/rand/v2/example_test.go

    	words := strings.Fields("ink runs from the corners of my mouth")
    	rand.Shuffle(len(words), func(i, j int) {
    		words[i], words[j] = words[j], words[i]
    	})
    	fmt.Println(words)
    }
    
    func ExampleShuffle_slicesInUnison() {
    	numbers := []byte("12345")
    	letters := []byte("ABCDE")
    	// Shuffle numbers, swapping corresponding entries in letters at the same time.
    	rand.Shuffle(len(numbers), func(i, j int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 30 17:09:26 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  5. src/math/rand/rand.go

    		m[i] = m[j]
    		m[j] = i
    	}
    	return m
    }
    
    // Shuffle pseudo-randomizes the order of elements.
    // n is the number of elements. Shuffle panics if n < 0.
    // swap swaps the elements with indexes i and j.
    func (r *Rand) Shuffle(n int, swap func(i, j int)) {
    	if n < 0 {
    		panic("invalid argument to Shuffle")
    	}
    
    	// Fisher-Yates shuffle: https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:09:08 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  6. src/crypto/sha1/sha1block_arm.s

    	MIX(Ra, Rb, Rc, Rd, Re)
    
    #define ROUND1x(Ra, Rb, Rc, Rd, Re) \
    	SHUFFLE(Re)	; \
    	FUNC1(Ra, Rb, Rc, Rd, Re)	; \
    	MIX(Ra, Rb, Rc, Rd, Re)
    
    #define ROUND2(Ra, Rb, Rc, Rd, Re) \
    	SHUFFLE(Re)	; \
    	FUNC2(Ra, Rb, Rc, Rd, Re)	; \
    	MIX(Ra, Rb, Rc, Rd, Re)
    
    #define ROUND3(Ra, Rb, Rc, Rd, Re) \
    	SHUFFLE(Re)	; \
    	FUNC3(Ra, Rb, Rc, Rd, Re)	; \
    	MIX(Ra, Rb, Rc, Rd, Re)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  7. src/math/rand/example_test.go

    	words := strings.Fields("ink runs from the corners of my mouth")
    	rand.Shuffle(len(words), func(i, j int) {
    		words[i], words[j] = words[j], words[i]
    	})
    	fmt.Println(words)
    }
    
    func ExampleShuffle_slicesInUnison() {
    	numbers := []byte("12345")
    	letters := []byte("ABCDE")
    	// Shuffle numbers, swapping corresponding entries in letters at the same time.
    	rand.Shuffle(len(numbers), func(i, j int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 26 16:24:57 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  8. src/math/rand/rand_test.go

    	if !bytes.Equal(b1, b2) {
    		t.Errorf("mismatch after re-seed:\n%x\n%x", b1, b2)
    	}
    }
    
    func TestShuffleSmall(t *testing.T) {
    	// Check that Shuffle allows n=0 and n=1, but that swap is never called for them.
    	r := New(NewSource(1))
    	for n := 0; n <= 1; n++ {
    		r.Shuffle(n, func(i, j int) { t.Fatalf("swap called, n=%d i=%d j=%d", n, i, j) })
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/CollectionBenchmarkSampleData.java

          Collections.shuffle(tmp, random);
          queryList.addAll(tmp.subList(0, extras));
        }
    
        // now add bad queries
        while (queryList.size() < numQueries) {
          Element candidate = newElement();
          if (!elementsInSet.contains(candidate)) {
            queryList.add(candidate);
          }
        }
        Collections.shuffle(queryList, random);
        return queryList.toArray(new Element[0]);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 17 15:49:06 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  10. docs/en/docs/js/custom.js

                }
                return true;
            });
        }
        window.addEventListener("scroll", loadVisibleTermynals);
        createTermynals();
        loadVisibleTermynals();
    }
    
    function shuffle(array) {
        var currentIndex = array.length, temporaryValue, randomIndex;
        while (0 !== currentIndex) {
            randomIndex = Math.floor(Math.random() * currentIndex);
            currentIndex -= 1;
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 08 17:50:56 UTC 2021
    - 6.6K bytes
    - Viewed (0)
Back to top