Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for ranid (0.16 sec)

  1. guava-tests/benchmark/com/google/common/base/CharMatcherBenchmark.java

        for (int n = 0; n < length; n++) {
          builder.append(
              randomCharFrom(list.get(n) >= threshold ? NONMATCHING_CHARS : matchingChars, rand));
        }
        return builder.toString();
      }
    
      private static char randomCharFrom(String s, Random rand) {
        return s.charAt(rand.nextInt(s.length()));
      }
    
      /**
       * Provides samples on a random distribution derived from the web.
       *
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 194.8K bytes
    - Viewed (0)
  2. cmd/bucket-replication.go

    	go p.startResyncRoutine(ctx, buckets, objAPI)
    	return nil
    }
    
    func (p *ReplicationPool) startResyncRoutine(ctx context.Context, buckets []BucketInfo, objAPI ObjectLayer) {
    	r := rand.New(rand.NewSource(time.Now().UnixNano()))
    	// Run the replication resync in a loop
    	for {
    		if err := p.loadResync(ctx, buckets, objAPI); err == nil {
    			<-ctx.Done()
    			return
    		}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 112.2K bytes
    - Viewed (1)
  3. android/guava-tests/benchmark/com/google/common/base/CharMatcherBenchmark.java

        for (int n = 0; n < length; n++) {
          builder.append(
              randomCharFrom(list.get(n) >= threshold ? NONMATCHING_CHARS : matchingChars, rand));
        }
        return builder.toString();
      }
    
      private static char randomCharFrom(String s, Random rand) {
        return s.charAt(rand.nextInt(s.length()));
      }
    
      /**
       * Provides samples on a random distribution derived from the web.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 194.8K bytes
    - Viewed (0)
  4. cmd/site-replication.go

    }
    
    // Init - initialize the site replication manager.
    func (c *SiteReplicationSys) Init(ctx context.Context, objAPI ObjectLayer) error {
    	go c.startHealRoutine(ctx, objAPI)
    	r := rand.New(rand.NewSource(time.Now().UnixNano()))
    	for {
    		err := c.loadFromDisk(ctx, objAPI)
    		if err == errConfigNotFound {
    			return nil
    		}
    		if err == nil {
    			break
    		}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 184.1K bytes
    - Viewed (1)
  5. cmd/server_test.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"bytes"
    	"context"
    	"encoding/xml"
    	"fmt"
    	"io"
    	"math/rand"
    	"net/http"
    	"net/url"
    	"reflect"
    	"regexp"
    	"runtime"
    	"strings"
    	"sync"
    	"testing"
    	"time"
    
    	"github.com/dustin/go-humanize"
    	"github.com/minio/minio-go/v7/pkg/set"
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 108K bytes
    - Viewed (0)
Back to top