- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 725 for randPod (0.36 sec)
-
testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/AbstractTestDirectoryProvider.java
*/ public abstract class AbstractTestDirectoryProvider implements TestRule, TestDirectoryProvider { protected final TestFile root; private final String className; private static final Random RANDOM = new Random(); private static final int ALL_DIGITS_AND_LETTERS_RADIX = 36; private static final int MAX_RANDOM_PART_VALUE = Integer.parseInt("zzzzz", ALL_DIGITS_AND_LETTERS_RADIX);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 6.7K bytes - Viewed (0) -
platforms/core-runtime/time/src/main/java/org/gradle/internal/time/ExponentialBackoff.java
*/ package org.gradle.internal.time; import java.io.IOException; import java.util.Random; import java.util.concurrent.TimeUnit; public class ExponentialBackoff<S extends ExponentialBackoff.Signal> { private static final int CAP_FACTOR = 100; private static final long SLOT_TIME = 25; private final Random random = new Random(); private final S signal; private final long slotTime;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 12 08:49:35 UTC 2024 - 4.8K bytes - Viewed (0) -
src/io/ioutil/tempfile.go
// TempFile creates a new temporary file in the directory dir, // opens the file for reading and writing, and returns the resulting *[os.File]. // The filename is generated by taking pattern and adding a random // string to the end. If pattern includes a "*", the random string // replaces the last "*". // If dir is the empty string, TempFile uses the default directory // for temporary files (see [os.TempDir]). // Multiple programs calling TempFile simultaneously
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 18 19:34:35 UTC 2023 - 1.7K bytes - Viewed (0) -
src/os/tempfile.go
// license that can be found in the LICENSE file. package os import ( "errors" "internal/bytealg" "internal/itoa" _ "unsafe" // for go:linkname ) // random number source provided by runtime. // We generate random temporary file names so that there's a good // chance the file doesn't exist yet - keeps the number of tries in // TempFile to a minimum. // //go:linkname runtime_rand runtime.rand
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 12 18:04:39 UTC 2024 - 3.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java
import java.util.Map; import java.util.Random; import java.util.Set; import junit.framework.TestCase; /** * Tests for {@link AtomicLongMap}. * * @author mike nonemacher */ @GwtCompatible(emulated = true) public class AtomicLongMapTest extends TestCase { private static final int ITERATIONS = 100; private static final int MAX_ADDEND = 100; private final Random random = new Random(301); @J2ktIncompatible
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 13 14:28:25 UTC 2024 - 17.4K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/jmh/java/org/gradle/internal/reflect/HashingAlgorithmsBenchmark.java
.put("blake2b.bc", new MessageDigestHashProcessorFactory(new Blake2b.Blake2b160())) .put("murmur3.guava", new GuavaProcessorFactory(Hashing.murmur3_128())) .build(); Random random = new Random(1234L); @Param({"16", "1024", "65536"}) int hashSize; // @Param({"md5.java", "md5.bc", "sha1.java", "sha1.bc", "blake2b.bc"}) @Param({"md5.java", "murmur3.guava"}) String type;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 5.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java
import java.util.Map; import java.util.Random; import java.util.Set; import junit.framework.TestCase; /** * Tests for {@link AtomicLongMap}. * * @author mike nonemacher */ @GwtCompatible(emulated = true) public class AtomicLongMapTest extends TestCase { private static final int ITERATIONS = 100; private static final int MAX_ADDEND = 100; private final Random random = new Random(301); @J2ktIncompatible
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 13 14:28:25 UTC 2024 - 17.4K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/file/archive/AbstractArchiveFileTreeTest.java
} // Generate a sufficiently large zip file containing some large files with random numbers, one per line Random random = new Random(); for (int i = 0; i < numFiles; i++) { StringBuilder sb = new StringBuilder(); for (long j = 0; j < numLines; j++) { sb.append(random.nextInt()).append('\n'); } rootDir.file("file" + i + ".txt").write(sb.toString());
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jul 28 16:17:59 UTC 2023 - 6.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/BloomFilterTest.java
private static final int NUM_PUTS = 100_000; private static final ThreadLocal<Random> random = new ThreadLocal<Random>() { @Override protected Random initialValue() { return new Random(); } }; private static final int GOLDEN_PRESENT_KEY = random.get().nextInt(); @AndroidIncompatible // OutOfMemoryError
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri May 17 15:27:58 UTC 2024 - 21.2K bytes - Viewed (0) -
platforms/software/signing/src/testFixtures/groovy/org/gradle/test/fixtures/GpgCmdFixture.groovy
import org.gradle.test.fixtures.file.TestFile import java.nio.file.Files import java.nio.file.Path import java.nio.file.Paths import java.util.regex.Pattern class GpgCmdFixture { private static final Random RANDOM = new Random() private static final int ALL_DIGITS_AND_LETTERS_RADIX = 36 private static final int MAX_RANDOM_PART_VALUE = Integer.parseInt("zzzzz", ALL_DIGITS_AND_LETTERS_RADIX)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Oct 11 12:16:09 UTC 2023 - 3.1K bytes - Viewed (0)