Home
last modified time | relevance | path

Searched defs:Rand (Results 1 – 25 of 110) sorted by relevance

12345

/aosp_15_r20/prebuilts/go/linux-x86/src/math/rand/v2/
Drand.go34 type Rand struct { struct
35 src Source
45 func (r *Rand) Int64() int64 { return int64(r.src.Uint64() &^ (1 << 63)) }
48 func (r *Rand) Uint32() uint32 { return uint32(r.src.Uint64() >> 32) }
51 func (r *Rand) Uint64() uint64 { return r.src.Uint64() }
54 func (r *Rand) Int32() int32 { return int32(r.src.Uint64() >> 33) }
57 func (r *Rand) Int() int { return int(uint(r.src.Uint64()) << 1 >> 1) }
60 func (r *Rand) Uint() uint { return uint(r.src.Uint64()) }
64 func (r *Rand) Int64N(n int64) int64 {
73 func (r *Rand) Uint64N(n uint64) uint64 {
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/crypto/tls/
Dhandshake_messages_test.go126 func randomBytes(n int, rand *rand.Rand) []byte {
134 func randomString(n int, rand *rand.Rand) string {
139 func (*clientHelloMsg) Generate(rand *rand.Rand, size int) reflect.Value {
227 func (*serverHelloMsg) Generate(rand *rand.Rand, size int) reflect.Value {
285 func (*encryptedExtensionsMsg) Generate(rand *rand.Rand, size int) reflect.Value {
298 func (*certificateMsg) Generate(rand *rand.Rand, size int) reflect.Value {
308 func (*certificateRequestMsg) Generate(rand *rand.Rand, size int) reflect.Value {
317 func (*certificateVerifyMsg) Generate(rand *rand.Rand, size int) reflect.Value {
325 func (*certificateStatusMsg) Generate(rand *rand.Rand, size int) reflect.Value {
331 func (*clientKeyExchangeMsg) Generate(rand *rand.Rand, size int) reflect.Value {
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/math/rand/
Drand.go62 type Rand struct { struct
63 src Source
64 s64 Source64 // non-nil if src is source64
70 readVal int64
73 readPos int8
85 func (r *Rand) Seed(seed int64) {
96 func (r *Rand) Int63() int64 { return r.src.Int63() }
99 func (r *Rand) Uint32() uint32 { return uint32(r.Int63() >> 31) }
102 func (r *Rand) Uint64() uint64 {
110 func (r *Rand) Int31() int32 { return int32(r.Int63() >> 32) }
[all …]
Dexport_test.go7 func Int31nForTest(r *Rand, n int32) int32 {
/aosp_15_r20/prebuilts/go/linux-x86/src/testing/quick/
Dquick.go26 Generate(rand *rand.Rand, size int) reflect.Value
30 func randFloat32(rand *rand.Rand) float32 {
39 func randFloat64(rand *rand.Rand) float64 {
48 func randInt64(rand *rand.Rand) int64 {
59 func Value(t reflect.Type, rand *rand.Rand) (value reflect.Value, ok bool) {
66 func sizedValue(t reflect.Type, rand *rand.Rand, size int) (value reflect.Value, ok bool) {
188 Rand *rand.Rand member
343 func arbitraryValues(args []reflect.Value, f reflect.Type, config *Config, rand *rand.Rand) (err er…
/aosp_15_r20/external/webrtc/rtc_base/
H A Drandom.cc24 uint32_t Random::Rand(uint32_t t) { in Rand() function in webrtc::Random
37 uint32_t Random::Rand(uint32_t low, uint32_t high) { in Rand() function in webrtc::Random
42 int32_t Random::Rand(int32_t low, int32_t high) { in Rand() function in webrtc::Random
50 float Random::Rand<float>() { in Rand() function in webrtc::Random
57 double Random::Rand<double>() { in Rand() function in webrtc::Random
64 bool Random::Rand<bool>() { in Rand() function in webrtc::Random
H A Drandom.h44 T Rand() { in Rand() function
/aosp_15_r20/external/llvm/lib/Fuzzer/test/
H A DFuzzerUnittest.cpp24 Random Rand(0); in TEST() local
102 Random Rand(0); in TestEraseByte() local
130 Random Rand(0); in TestInsertByte() local
166 Random Rand(0); in TestChangeByte() local
202 Random Rand(0); in TestChangeBit() local
238 Random Rand(0); in TestShuffleBytes() local
268 Random Rand(0); in TestAddWordFromDictionary() local
310 Random Rand(0); in TestAddWordFromDictionaryWithHint() local
339 Random Rand(0); in TestChangeASCIIInteger() local
433 Random Rand(0); in TEST() local
/aosp_15_r20/external/rust/android-crates-io/crates/libfuzzer-sys/libfuzzer/tests/
DFuzzerUnittest.cpp51 Random Rand(0); in TEST() local
139 Random Rand(0); in TestEraseBytes() local
175 Random Rand(0); in TestInsertByte() local
211 Random Rand(0); in TestInsertRepeatedBytes() local
256 Random Rand(0); in TestChangeByte() local
292 Random Rand(0); in TestChangeBit() local
328 Random Rand(0); in TestShuffleBytes() local
358 Random Rand(0); in TestCopyPart() local
408 Random Rand(0); in TEST() local
421 Random Rand(0); in TestAddWordFromDictionary() local
[all …]
/aosp_15_r20/external/webrtc/modules/rtp_rtcp/source/rtcp_packet/
H A Dextended_reports_unittest.cc39 T Rand() { in Rand() function in webrtc::RtcpPacketExtendedReportsTest
48 ReceiveTimeInfo RtcpPacketExtendedReportsTest::Rand<ReceiveTimeInfo>() { in Rand() function in webrtc::RtcpPacketExtendedReportsTest
56 NtpTime RtcpPacketExtendedReportsTest::Rand<NtpTime>() { in Rand() function in webrtc::RtcpPacketExtendedReportsTest
63 Rrtr RtcpPacketExtendedReportsTest::Rand<Rrtr>() { in Rand() function in webrtc::RtcpPacketExtendedReportsTest
/aosp_15_r20/prebuilts/go/linux-x86/src/crypto/internal/edwards25519/field/
Dfe_test.go34 func generateFieldElement(rand *mathrand.Rand) Element {
79 func generateWeirdFieldElement(rand *mathrand.Rand) Element {
89 func (Element) Generate(rand *mathrand.Rand, size int) reflect.Value {
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/prebuilt_include/llvm/lib/Fuzzer/
DFuzzerCorpus.h303 InputInfo &ChooseUnitToMutate(Random &Rand) { in ChooseUnitToMutate()
309 InputInfo &ChooseUnitToCrossOverWith(Random &Rand, bool UniformDist) { in ChooseUnitToCrossOverWith()
319 size_t ChooseUnitIdxToMutate(Random &Rand) { in ChooseUnitIdxToMutate()
496 void UpdateCorpusDistribution(Random &Rand) { in UpdateCorpusDistribution()
/aosp_15_r20/external/rust/android-crates-io/crates/libfuzzer-sys/libfuzzer/
DFuzzerCorpus.h302 InputInfo &ChooseUnitToMutate(Random &Rand) { in ChooseUnitToMutate()
308 InputInfo &ChooseUnitToCrossOverWith(Random &Rand, bool UniformDist) { in ChooseUnitToCrossOverWith()
318 size_t ChooseUnitIdxToMutate(Random &Rand) { in ChooseUnitIdxToMutate()
495 void UpdateCorpusDistribution(Random &Rand) { in UpdateCorpusDistribution()
DFuzzerMutate.cpp27 MutationDispatcher::MutationDispatcher(Random &Rand, in MutationDispatcher()
63 static char RandCh(Random &Rand) { in RandCh()
402 size_t ChangeBinaryInteger(uint8_t *Data, size_t Size, Random &Rand) { in ChangeBinaryInteger()
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/prebuilt_include/llvm/lib/Fuzzer/
DFuzzerCorpus.h303 InputInfo &ChooseUnitToMutate(Random &Rand) { in ChooseUnitToMutate()
309 InputInfo &ChooseUnitToCrossOverWith(Random &Rand, bool UniformDist) { in ChooseUnitToCrossOverWith()
319 size_t ChooseUnitIdxToMutate(Random &Rand) { in ChooseUnitIdxToMutate()
496 void UpdateCorpusDistribution(Random &Rand) { in UpdateCorpusDistribution()
/aosp_15_r20/external/libaom/test/
H A Dhadamard_test.cc356 int16_t Rand() override { in Rand() function in __anoncdacd0be0111::HadamardLowbdTest
412 int16_t Rand() override { in Rand() function in __anoncdacd0be0111::HadamardHighbdTest
461 int16_t Rand() override { in Rand() function in __anoncdacd0be0111::HadamardLowbdLPTest
511 int16_t Rand() override { in Rand() function in __anoncdacd0be0111::HadamardLowbdLP8x8DualTest
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/prebuilt_include/llvm/lib/Fuzzer/
DFuzzerCorpus.h303 InputInfo &ChooseUnitToMutate(Random &Rand) { in ChooseUnitToMutate()
309 InputInfo &ChooseUnitToCrossOverWith(Random &Rand, bool UniformDist) { in ChooseUnitToCrossOverWith()
319 size_t ChooseUnitIdxToMutate(Random &Rand) { in ChooseUnitIdxToMutate()
496 void UpdateCorpusDistribution(Random &Rand) { in UpdateCorpusDistribution()
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/prebuilt_include/llvm/lib/Fuzzer/
DFuzzerCorpus.h303 InputInfo &ChooseUnitToMutate(Random &Rand) { in ChooseUnitToMutate()
309 InputInfo &ChooseUnitToCrossOverWith(Random &Rand, bool UniformDist) { in ChooseUnitToCrossOverWith()
319 size_t ChooseUnitIdxToMutate(Random &Rand) { in ChooseUnitIdxToMutate()
496 void UpdateCorpusDistribution(Random &Rand) { in UpdateCorpusDistribution()
/aosp_15_r20/external/llvm/lib/Fuzzer/
H A DFuzzerMutate.cpp21 MutationDispatcher::MutationDispatcher(Random &Rand, in MutationDispatcher()
52 static char FlipRandomBit(char X, Random &Rand) { in FlipRandomBit()
64 static char RandCh(Random &Rand) { in RandCh()
/aosp_15_r20/prebuilts/go/linux-x86/src/crypto/internal/edwards25519/
Dscalar_test.go33 func (Scalar) Generate(rand *mathrand.Rand, size int) reflect.Value {
238 func (notZeroScalar) Generate(rand *mathrand.Rand, size int) reflect.Value {
/aosp_15_r20/prebuilts/go/linux-x86/src/hash/maphash/
Dsmhasher_test.go71 func randBytes(r *rand.Rand, b []byte) {
318 random(r *rand.Rand) // set key to something random
/aosp_15_r20/external/libvpx/test/
H A Dhadamard_test.cc256 int16_t Rand() override { in Rand() function in __anon54e2e8ff0111::HadamardLowbdTest
339 int16_t Rand() override { in Rand() function in __anon54e2e8ff0111::HadamardHighbdTest
/aosp_15_r20/libcore/ojluni/src/main/java/java/util/
H A DReverseOrderListView.java55 static class Rand<E> extends ReverseOrderListView<E> implements RandomAccess { class in ReverseOrderListView
56 Rand(List<E> list, boolean modifiable) { in Rand() method in ReverseOrderListView.Rand
/aosp_15_r20/external/bc/
H A DLICENSE.md57 ## Rand section in License
/aosp_15_r20/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/bzip2/
H A DRand.java25 final class Rand { class

12345