Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for HashString (0.22 sec)

  1. cmd/xl-storage-format-utils.go

    	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.
    		crc ^= (xxh3.HashString(k) ^ 0x4ee3bbaf7ab2506b) + (xxh3.HashString(v) ^ 0x8da4c8da66194257)
    	}
    	return crc
    }
    
    // hashDeterministicBytes will return a deterministic (weak) hash for the map values.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 22:18:44 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/main/groovy/org/gradle/vcs/internal/SourceDependencies.groovy

    import org.gradle.test.fixtures.file.TestFile
    
    import static org.gradle.internal.hash.Hashing.hashString
    
    @SelfType(AbstractIntegrationSpec)
    trait SourceDependencies {
        TestFile checkoutDir(String repoName, String versionId, String repoId, TestFile baseDir=testDirectory) {
            def prefix = repoName.take(9)
            def hashedCommit = hashString("${repoId}-${versionId}").toCompactString()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  3. internal/logger/logger.go

    			Source:    trace,
    			Variables: tags,
    		}
    	} else {
    		entry.Message = message
    	}
    
    	if anonFlag {
    		entry.API.Args.Bucket = HashString(entry.API.Args.Bucket)
    		entry.API.Args.Object = HashString(entry.API.Args.Object)
    		entry.RemoteHost = HashString(entry.RemoteHost)
    		if entry.Trace != nil {
    			entry.Trace.Variables = make(map[string]interface{})
    		}
    	}
    
    	return entry
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  4. platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/Hashing.java

            return DEFAULT.hashBytes(bytes);
        }
    
        /**
         * Hash the given string with the default hash function.
         */
        public static HashCode hashString(CharSequence string) {
            return DEFAULT.hashString(string);
        }
    
        /**
         * Hash the contents of the given {@link java.io.InputStream} with the default hash function.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:30 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  5. platforms/software/version-control/src/main/java/org/gradle/vcs/internal/services/DefaultVersionControlRepositoryFactory.java

    import java.util.Set;
    import java.util.function.Supplier;
    
    import static org.gradle.api.internal.cache.CacheConfigurationsInternal.DEFAULT_MAX_AGE_IN_DAYS_FOR_CREATED_CACHE_ENTRIES;
    import static org.gradle.internal.hash.Hashing.hashString;
    import static org.gradle.internal.time.TimestampSuppliers.daysAgo;
    
    public class DefaultVersionControlRepositoryFactory implements VersionControlRepositoryConnectionFactory, Stoppable {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 18:35:55 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/types/typeutil/map.go

    func (h Hasher) Hash(t types.Type) uint32 {
    	hash, ok := h.memo[t]
    	if !ok {
    		hash = h.hashFor(t)
    		h.memo[t] = hash
    	}
    	return hash
    }
    
    // hashString computes the Fowler–Noll–Vo hash of s.
    func hashString(s string) uint32 {
    	var h uint32
    	for i := 0; i < len(s); i++ {
    		h ^= uint32(s[i])
    		h *= 16777619
    	}
    	return h
    }
    
    // hashFor computes the hash of t.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/cache/internal/BuildScopeCacheDir.java

                // No build definition, use a cache dir in the user home directory to avoid generating garbage in the root directory
                cacheDir = new File(userHomeDirProvider.getGradleUserHomeDirectory(), UNDEFINED_BUILD + Hashing.hashString(buildLayout.getRootDirectory().getAbsolutePath()));
            } else {
                // Use the .gradle directory in the build root directory
                cacheDir = new File(buildLayout.getRootDirectory(), ".gradle");
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 23 18:02:38 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. src/internal/coverage/cfile/testsupport.go

    	// hash (just in case there are multiple instrumented executables
    	// in play). See issue #57924 for more on this.
    	hashstring := fmt.Sprintf("%x", finalHash)
    	importpaths := make(map[string]struct{})
    	for _, p := range podlist {
    		if !strings.Contains(p.MetaFile, hashstring) {
    			continue
    		}
    		if err := ts.processPod(p, importpaths); err != nil {
    			return err
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:57:47 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  9. cmd/bucket-lifecycle.go

    	return xxh3.HashString(f.TransitionedObject.Tier + f.TransitionedObject.Name)
    }
    
    func (n newerNoncurrentTask) OpHash() uint64 {
    	return xxh3.HashString(n.bucket + n.versions[0].ObjectV.ObjectName)
    }
    
    func (j jentry) OpHash() uint64 {
    	return xxh3.HashString(j.TierName + j.ObjName)
    }
    
    func (e expiryTask) OpHash() uint64 {
    	return xxh3.HashString(e.objInfo.Bucket + e.objInfo.Name)
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  10. cmd/bootstrap-peer-server.go

    		// differently on each nodes, update skipEnvs()
    		// map if there are such environment values
    		if _, ok := skipEnvs[envK]; ok {
    			continue
    		}
    		envValues[envK] = logger.HashString(env.Get(envK, ""))
    	}
    	scfg := &ServerSystemConfig{NEndpoints: globalEndpoints.NEndpoints(), MinioEnv: envValues}
    	var cmdLines []string
    	for _, ep := range globalEndpoints {
    		cmdLines = append(cmdLines, ep.CmdLine)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 7.5K bytes
    - Viewed (0)
Back to top