Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 1,348 for rand_r (0.16 sec)

  1. pilot/pkg/xds/testdata/benchmarks/virtualservice.yaml

    kind: VirtualService
    metadata:
      name: vs-{{$i}}
    spec:
      hosts:
        - random-{{$i}}.host.example
      http:
      - name: "match-route"
        match:
        - uri:
            prefix: "/foo"
        - uri:
            regex: "/bar"
        rewrite:
          uri: "/new-url"
        route:
          - destination:
              host: random-{{$i}}.host.example
    ---
    apiVersion: networking.istio.io/v1alpha3
    kind: ServiceEntry
    metadata:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jul 01 15:55:05 UTC 2020
    - 1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/ByteSourceTester.java

        if (slice && bytes.length > 0) {
          // test a random slice() of the ByteSource
          Random random = new Random();
          byte[] expected = factory.getExpected(bytes);
          // if expected.length == 0, off has to be 0 but length doesn't matter--result will be empty
          int off = expected.length == 0 ? 0 : random.nextInt(expected.length);
          int len = expected.length == 0 ? 4 : random.nextInt(expected.length - off);
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 8.6K bytes
    - Viewed (0)
  3. 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)
  4. guava-tests/benchmark/com/google/common/primitives/UnsignedLongsBenchmark.java

    import com.google.caliper.Benchmark;
    import java.util.Random;
    
    /**
     * Benchmarks for certain methods of {@code UnsignedLongs}.
     *
     * @author Eamonn McManus
     */
    public class UnsignedLongsBenchmark {
      private static final int ARRAY_SIZE = 0x10000;
      private static final int ARRAY_MASK = 0x0ffff;
      private static final Random RANDOM_SOURCE = new Random(314159265358979L);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.3K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/symbols/AbstractSymbolRestoreFromDifferentModuleTest.kt

                Triple(DebugSymbolRenderer().render(analysisSession, symbol), symbol.render(defaultRenderer), pointer)
            }
            configurator.doGlobalModuleStateModification(project)
    
            val (debugRenderedRestored, prettyRenderedRestored) = analyseForTest(restoreAt) {
                val symbol = pointer.restoreSymbol() as? KaDeclarationSymbol
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  9. src/os/tempfile.go

    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
    func runtime_rand() uint64
    
    func nextRandom() string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 12 18:04:39 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  10. build-logic/performance-testing/src/main/groovy/gradlebuild/performance/generator/MavenJarCreator.groovy

    import java.util.zip.Deflater
    import java.util.zip.ZipEntry
    import java.util.zip.ZipOutputStream
    
    class MavenJarCreator {
        int minimumSizeKB = 0
        int maximumSizeKB = 0
        Random random = new Random(1L)
        byte[] charsToUse = "abcdefghijklmnopqrstuvwxyz0123456789".getBytes()
    
        void createJar(MavenModule mavenModule, File artifactFile) {
            try {
                artifactFile.withOutputStream { stream ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 05 09:51:22 UTC 2021
    - 2.9K bytes
    - Viewed (0)
Back to top