- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 297 for sum2 (0.03 sec)
-
src/cmd/go/internal/cache/hash_test.go
hashSalt = nil defer func() { hashSalt = oldSalt }() h := NewHash("alice") h.Write([]byte("hello world")) sum := fmt.Sprintf("%x", h.Sum()) want := "b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9" if sum != want { t.Errorf("hash(hello world) = %v, want %v", sum, want) } } func TestHashFile(t *testing.T) { f, err := os.CreateTemp("", "cmd-go-test-") if err != nil { t.Fatal(err)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 09 19:12:23 UTC 2020 - 1.1K bytes - Viewed (0) -
src/vendor/golang.org/x/crypto/internal/poly1305/poly1305.go
// // It must not be called after the first call of Sum or Verify. func (h *MAC) Write(p []byte) (n int, err error) { if h.finalized { panic("poly1305: write to MAC after Sum or Verify") } return h.mac.Write(p) } // Sum computes the authenticator of all data written to the // message authentication code. func (h *MAC) Sum(b []byte) []byte { var mac [TagSize]byte h.mac.Sum(&mac) h.finalized = true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 09 20:10:44 UTC 2021 - 3.3K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/collect/MultisetIteratorBenchmark.java
@Benchmark int hashMultiset(int reps) { int sum = 0; for (int i = 0; i < reps; i++) { for (Object value : hashMultiset) { sum += value.hashCode(); } } return sum; } @Benchmark int linkedHashMultiset(int reps) { int sum = 0; for (int i = 0; i < reps; i++) { for (Object value : linkedHashMultiset) { sum += value.hashCode(); } }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 2.6K bytes - Viewed (0) -
platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/CppHelloWorldApp.groovy
#include "gtest/gtest.h" #include "hello.h" using namespace testing; TEST(HelloTest, test_sum) { ASSERT_TRUE(sum(0, 2) == 2); #ifndef ONE_TEST ASSERT_TRUE(sum(0, -2) == -2); ASSERT_TRUE(sum(2, 2) == 4); #endif } int main(int argc, char **argv) { testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); } """),
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 5K bytes - Viewed (0) -
src/crypto/internal/boring/hmac.go
return h.blockSize } func (h *boringHMAC) Sum(in []byte) []byte { if h.sum == nil { size := h.Size() h.sum = make([]byte, size) } // Make copy of context because Go hash.Hash mandates // that Sum has no effect on the underlying stream. // In particular it is OK to Sum, then Write more, then Sum again, // and the second Sum acts as if the first didn't happen. C._goboringcrypto_HMAC_CTX_init(&h.ctx2)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 17:51:31 UTC 2023 - 4K bytes - Viewed (0) -
tests/integration/telemetry/policy/traffic_allow_any_test.go
cases := []*TestCase{ { Name: "HTTP Traffic", PortName: "http", Expected: Expected{ Query: prometheus.Query{ Metric: "istio_requests_total", Aggregation: "sum", Labels: map[string]string{ "reporter": "source", "destination_service_name": "PassthroughCluster", "response_code": "200", }, },
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 18 18:03:23 UTC 2022 - 5.4K bytes - Viewed (0) -
src/cmd/go/testdata/script/mod_tidy_compat.txt
[exec:patch] mv go.mod go.mod.tidyResult [exec:patch] mv go.sum go.sum.tidyResult [exec:patch] cp go.mod.orig go.mod [exec:patch] ! go mod tidy -diff [exec:patch] cp stdout diff.patch [exec:patch] exec patch -p1 -i diff.patch [exec:patch] go mod tidy -diff [exec:patch] cmp go.mod go.mod.tidyResult [exec:patch] cmp go.sum go.sum.tidyResult go list -m all cmp stdout m_all.txt go mod edit -go=1.16
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 14:56:56 UTC 2024 - 3.3K bytes - Viewed (0) -
manifests/addons/dashboards/jsonnetfile.lock.json
"version": "18eb4e529c60ec20ab243e2da3bcb52b2fd0d223", "sum": "eyuJ0jOXeA4MrobbNgU4/v5a7ASDHslHZ0eS6hDdWoI=" }, { "source": { "git": { "remote": "https://github.com/grafana/grafonnet.git", "subdir": "gen/grafonnet-v11.0.0" } }, "version": "18eb4e529c60ec20ab243e2da3bcb52b2fd0d223", "sum": "6ycXhBvq/k7j01vaNiDSZcVsKikh01pfNH+2oauHgJg=" }, {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jun 04 18:05:06 UTC 2024 - 1.2K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/strategy/StaticVersionComparator.java
Integer sm1 = SPECIAL_MEANINGS.get(part1.toLowerCase(Locale.US)); Integer sm2 = SPECIAL_MEANINGS.get(part2.toLowerCase(Locale.US)); if (sm1 != null) { sm2 = sm2 == null ? 0 : sm2; return sm1 - sm2; } if (sm2 != null) { return -sm2; } return part1.compareTo(part2); } if (i < parts1.length) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 3.8K bytes - Viewed (0) -
pkg/util/hash/hash.go
func (i *instance) WriteString(s string) (n int) { n, _ = i.hash.WriteString(s) return } func (i *instance) Sum64() uint64 { return i.hash.Sum64() } func (i *instance) Sum() string { sum := i.hash.Sum(nil) return hex.EncodeToString(sum)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Dec 21 20:24:14 UTC 2023 - 1.4K bytes - Viewed (0)