- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,348 for rand_r (0.11 sec)
-
tensorflow/compiler/mlir/tfrt/tests/analysis/update_op_cost_in_tfrt_mlir_test.cc
auto expected_op_cost_map = GetOpCostMap(module.get()); EXPECT_EQ(expected_op_cost_map.size(), 1); unsigned int seed = 23579; for (auto& [op_key, cost] : expected_op_cost_map) { cost = rand_r(&seed) % 1000; } tensorflow::tfrt_stub::CostRecorder cost_recorder; for (const auto& [op_key, cost] : expected_op_cost_map) { cost_recorder.RecordCost(op_key, cost); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jul 21 22:52:12 UTC 2023 - 3.1K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/internal/gtest-internal.h
}; // A simple Linear Congruential Generator for generating random // numbers with a uniform distribution. Unlike rand() and srand(), it // doesn't use global state (and therefore can't interfere with user // code). Unlike rand_r(), it's portable. An LCG isn't very random, // but it's good enough for our purposes. class GTEST_API_ Random { public: static const UInt32 kMaxRange = 1u << 31;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 43.1K bytes - Viewed (0) -
testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-internal.h
}; // A simple Linear Congruential Generator for generating random // numbers with a uniform distribution. Unlike rand() and srand(), it // doesn't use global state (and therefore can't interfere with user // code). Unlike rand_r(), it's portable. An LCG isn't very random, // but it's good enough for our purposes. class GTEST_API_ Random { public: static const UInt32 kMaxRange = 1u << 31;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 43.1K bytes - Viewed (0) -
src/runtime/rand.go
return uint32(rand()) } // rand returns a random uint64 from the per-m chacha8 state. // Do not change signature: used via linkname from other packages. // //go:nosplit //go:linkname rand func rand() uint64 { // Note: We avoid acquirem here so that in the fast path // there is just a getg, an inlined c.Next, and a return. // The performance difference on a 16-core AMD is
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 14:32:47 UTC 2024 - 8K bytes - Viewed (0) -
src/math/rand/v2/rand.go
type Source interface { Uint64() uint64 } // A Rand is a source of random numbers. type Rand struct { src Source } // New returns a new Rand that uses random values from src // to generate other random values. func New(src Source) *Rand { return &Rand{src: src} } // Int64 returns a non-negative pseudo-random 63-bit integer as an int64. func (r *Rand) Int64() int64 { return int64(r.src.Uint64() &^ (1 << 63)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 02:25:49 UTC 2024 - 12.8K bytes - Viewed (0) -
src/math/rand/rand.go
readPos int8 } // New returns a new [Rand] that uses random values from src // to generate other random values. func New(src Source) *Rand { s64, _ := src.(Source64) return &Rand{src: src, s64: s64} } // Seed uses the provided seed value to initialize the generator to a deterministic state. // Seed should not be called concurrently with any other [Rand] method. func (r *Rand) Seed(seed int64) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:09:08 UTC 2024 - 16.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/rand/rand.go
limitations under the License. */ // Package rand provides utilities related to randomization. package rand import ( "math/rand" "sync" "time" ) var rng = struct { sync.Mutex rand *rand.Rand }{ rand: rand.New(rand.NewSource(time.Now().UnixNano())), } // Int returns a non-negative pseudo-random int. func Int() int { rng.Lock() defer rng.Unlock()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 11 11:02:01 UTC 2018 - 3.5K bytes - Viewed (0) -
src/crypto/rand/rand.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package rand implements a cryptographically secure // random number generator. package rand import "io" // Reader is a global, shared instance of a cryptographically // secure random number generator. // // - On Linux, FreeBSD, Dragonfly, and Solaris, Reader uses getrandom(2)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 19 20:02:21 UTC 2024 - 1.5K bytes - Viewed (0) -
operator/pkg/helmreconciler/render.go
John Howard <******@****.***> 1655951219 -0700
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 23 02:26:59 UTC 2022 - 1.6K bytes - Viewed (0) -
src/crypto/rand/rand_js.go
// Copyright 2018 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build js && wasm package rand import "syscall/js" // The maximum buffer size for crypto.getRandomValues is 65536 bytes. // https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues#exceptions const maxGetRandomRead = 64 << 10 var batchedGetRandom func([]byte) error
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 06 18:03:38 UTC 2023 - 1.1K bytes - Viewed (0)