- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 359 for random (0.03 sec)
-
internal/http/dial_dnscache.go
// is given, it sets default dial function. // // You can use returned dial function for `http.Transport.DialContext`. // // In this function, it uses functions from `rand` package. To make it really random, // you MUST call `rand.Seed` and change the value from the default in your application func DialContextWithLookupHost(lookupHost LookupHost, baseDialCtx DialContext) DialContext { if lookupHost == nil {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 2.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/Utf8Test.java
utf8Lengths.put(MIN_SUPPLEMENTARY_CODE_POINT, 4); utf8Lengths.put(MAX_CODE_POINT, 4); Integer[] codePoints = utf8Lengths.keySet().toArray(new Integer[] {}); StringBuilder sb = new StringBuilder(); Random rnd = new Random(); for (int trial = 0; trial < 100; trial++) { sb.setLength(0); int utf8Length = 0; for (int i = 0; i < 6; i++) { Integer randomCodePoint = codePoints[rnd.nextInt(codePoints.length)];
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 12.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java
// Check that secure nonces provide full diversity (entire nonce is random) String nonceHex = bytesToHex(nonce); nonceSet.add(nonceHex); } // Verify that secure nonces provide excellent diversity // With 100 nonces and 16 random bytes, we should have all unique nonces assertEquals(100, nonceSet.size(), "Secure nonces should all be unique");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 44.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/PreauthIntegrityService.java
this(new SecureRandom(), DEFAULT_HASH_ALGORITHM, true); } /** * Constructs a PreauthIntegrityService with specified configuration. * * @param secureRandom the secure random generator * @param hashAlgorithm the hash algorithm to use * @param enforceIntegrity whether to enforce integrity checks */
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 12.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/multichannel/LoadBalancingStrategy.java
* Round-robin selection through available channels */ ROUND_ROBIN, /** * Select the least busy channel based on pending operations */ LEAST_LOADED, /** * Weighted random selection based on channel scores */ WEIGHTED_RANDOM, /** * Affinity-based selection for related operations */ AFFINITY_BASED, /**Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 1.4K bytes - Viewed (0) -
cmd/signature-v4-utils_test.go
}{ {"shastring", "", "shastring"}, {emptySHA256, "", emptySHA256}, {"", "", emptySHA256}, {"", "X-Amz-Credential=random", unsignedPayload}, {"", "X-Amz-Credential=random&X-Amz-Content-Sha256=" + unsignedPayload, unsignedPayload}, {"", "X-Amz-Credential=random&X-Amz-Content-Sha256=shastring", "shastring"}, } for i, testCase := range testCases {Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Wed Apr 09 14:28:39 UTC 2025 - 14.3K bytes - Viewed (0) -
internal/etag/etag.go
// Here is an incorrect implementation of IsEncrypted: // // return len(e) > 16 && !bytes.ContainsRune(e, '-') // // An encrypted ETag may contain some random bytes - e.g. // and nonce value. This nonce value may contain a '-' // just by its nature of being randomly generated. // The above implementation would incorrectly consider // such an ETag (with a nonce value containing a '-') // as non-encrypted.
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri May 16 14:27:42 UTC 2025 - 13.2K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBenchmark.java
queue = (BlockingQueue<String>) constructor.newInstance(capacity); strings = new String[capacity]; for (int i = 0; i < capacity; i++) { strings[i] = String.valueOf(Math.random()); } } @Benchmark void addsAndRemoves(int reps) { int capacity = this.capacity; BlockingQueue<String> queue = this.queue; String[] strings = this.strings;
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 2.1K bytes - Viewed (0) -
docs/throttle/README.md
## Examples ### Configuring connection limit
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 16 08:43:49 UTC 2024 - 1.5K bytes - Viewed (1) -
android/guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java
ArbitraryInstances.get(Stopwatch.class).start(); assertThat(ArbitraryInstances.get(Ticker.class)).isNotNull(); assertFreshInstanceReturned(Random.class); assertEquals( ArbitraryInstances.get(Random.class).nextInt(), ArbitraryInstances.get(Random.class).nextInt()); } public void testGet_concurrent() { assertTrue(ArbitraryInstances.get(BlockingDeque.class).isEmpty());
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 20:45:32 UTC 2025 - 22.2K bytes - Viewed (0)