Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 129 for random (0.2 sec)

  1. buildscripts/resolve-right-versions.sh

    #!/bin/bash -e
    
    set -E
    set -o pipefail
    set -x
    set -e
    
    WORK_DIR="$PWD/.verify-$RANDOM"
    MINIO_CONFIG_DIR="$WORK_DIR/.minio"
    MINIO=("$PWD/minio" --config-dir "$MINIO_CONFIG_DIR" server)
    
    if [ ! -x "$PWD/minio" ]; then
    	echo "minio executable binary not found in current directory"
    	exit 1
    fi
    
    function start_minio_5drive() {
    	start_port=$1
    
    	export MINIO_ROOT_USER=minio
    	export MINIO_ROOT_PASSWORD=minio123
    Shell Script
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Aug 16 14:51:33 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  2. cmd/xl-storage-format-utils.go

    // Trivial collisions are avoided, but this is by no means a strong hash.
    func hashDeterministicString(m map[string]string) uint64 {
    	// Seed (random)
    	crc := uint64(0xc2b40bbac11a7295)
    	// Xor each value to make order independent
    	for k, v := range m {
    		// Separate key and value with an individual xor with a random number.
    		// Add values of each, so they cannot be trivially collided.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 11 17:45:28 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  3. internal/crypto/key_test.go

    	}
    }
    
    var generateKeyTests = []struct {
    	ExtKey     [32]byte
    	Random     io.Reader
    	ShouldPass bool
    }{
    	{ExtKey: [32]byte{}, Random: nil, ShouldPass: true},              // 0
    	{ExtKey: [32]byte{}, Random: rand.Reader, ShouldPass: true},      // 1
    	{ExtKey: [32]byte{}, Random: shortRandom(32), ShouldPass: true},  // 2
    	{ExtKey: [32]byte{}, Random: shortRandom(31), ShouldPass: false}, // 3
    }
    
    func TestGenerateKey(t *testing.T) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Feb 02 00:13:57 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  4. internal/auth/credentials.go

    // GenerateAccessKey returns a new access key generated randomly using
    // the given io.Reader. If random is nil, crypto/rand.Reader is used.
    // If length <= 0, the access key length is chosen automatically.
    //
    // GenerateAccessKey returns an error if length is too small for a valid
    // access key.
    func GenerateAccessKey(length int, random io.Reader) (string, error) {
    	if random == nil {
    		random = rand.Reader
    	}
    	if length <= 0 {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  5. docs/kms/IAM.md

    setting the env. variable `MINIO_KMS_SECRET_KEY`. It expects the following
    format:
    
    ```sh
    MINIO_KMS_SECRET_KEY=<key-name>:<base64-value>
    ```
    
    First generate a 256 bit random key via:
    
    ```sh
    $ cat /dev/urandom | head -c 32 | base64 -
    OSMM+vkKUTCvQs9YL/CVMIMt43HFhkUpqJxTmGl6rYw=
    ```
    
    Now, you can set `MINIO_KMS_SECRET_KEY` like this:
    
    ```sh
    Plain Text
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  6. cmd/perf-tests.go

    }
    
    func (n *netPerfRX) Reset() {
    	n.Lock()
    	defer n.Unlock()
    	n.RX = 0
    	n.RXSample = 0
    	n.lastToConnect = time.Time{}
    	n.firstToDisconnect = time.Time{}
    }
    
    // Reader to read random data.
    type netperfReader struct {
    	n   uint64
    	eof chan struct{}
    	buf []byte
    }
    
    func (m *netperfReader) Read(b []byte) (int, error) {
    	select {
    	case <-m.eof:
    		return 0, io.EOF
    	default:
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Jan 28 18:04:17 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  7. docs/sts/web-identity.py

    app = Flask(__name__)
    
    
    @app.route('/')
    def homepage():
        text = '<a href="%s">Authenticate with keycloak</a>'
        return text % make_authorization_url()
    
    
    def make_authorization_url():
        # Generate a random string for the state parameter
        # Save it for use later to prevent xsrf attacks
    
        state = str(uuid4())
        params = {"client_id": client_id,
                  "response_type": "code",
                  "state": state,
    Python
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Jul 28 01:37:51 GMT 2021
    - 2.9K bytes
    - Viewed (1)
  8. cmd/xl-storage-format_test.go

    			}
    			// Encode all. This is used for benchmarking.
    			enc, err := xl.AppendTo(nil)
    			if err != nil {
    				b.Fatal(err)
    			}
    			b.Logf("Serialized size: %d bytes", len(enc))
    			rng := rand.New(rand.NewSource(0))
    			dump := make([]byte, len(enc))
    			b.Run("UpdateObjectVersion", func(b *testing.B) {
    				b.SetBytes(int64(size))
    				b.ResetTimer()
    				b.ReportAllocs()
    				for i := 0; i < b.N; i++ {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  9. 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.
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Mar 10 21:09:36 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  10. docs/federation/lookup/README.md

    points to the public IP address where each cluster might be accessible, this is unique for each cluster.
    
    NOTE: `mybucket` only exists on one cluster either `cluster1` or `cluster2` this is random and
    is decided by how `domain.com` gets resolved, if there is a round-robin DNS on `domain.com` then
    it is randomized which cluster might provision the bucket.
    
    ### 3. Test your setup
    
    Plain Text
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Sep 29 04:28:45 GMT 2022
    - 4K bytes
    - Viewed (0)
Back to top