Home
last modified time | relevance | path

Searched refs:prng (Results 1 – 25 of 35) sorted by relevance

12

/external/webrtc/webrtc/base/
Drandom_unittest.cc37 void UniformBucketTest(T bucket_count, int samples, Random* prng) { in UniformBucketTest() argument
54 sample = prng->Rand<T>(); in UniformBucketTest()
67 Random prng(7297352569824ull); in TEST() local
68 UniformBucketTest<signed char>(64, 640000, &prng); in TEST()
69 UniformBucketTest<signed char>(11, 440000, &prng); in TEST()
70 UniformBucketTest<signed char>(3, 270000, &prng); in TEST()
74 Random prng(7297352569824ull); in TEST() local
75 UniformBucketTest<unsigned char>(64, 640000, &prng); in TEST()
76 UniformBucketTest<unsigned char>(11, 440000, &prng); in TEST()
77 UniformBucketTest<unsigned char>(3, 270000, &prng); in TEST()
[all …]
/external/webrtc/webrtc/call/
Drtc_event_log_unittest.cc303 Random* prng) { in GenerateRtpPacket() argument
320 csrcs.push_back(prng->Rand<uint32_t>()); in GenerateRtpPacket()
323 rtp_sender.SetSSRC(prng->Rand<uint32_t>()); in GenerateRtpPacket()
324 rtp_sender.SetStartTimestamp(prng->Rand<uint32_t>(), true); in GenerateRtpPacket()
325 rtp_sender.SetSequenceNumber(prng->Rand<uint16_t>()); in GenerateRtpPacket()
333 int8_t payload_type = prng->Rand(0, 127); in GenerateRtpPacket()
334 bool marker_bit = prng->Rand<bool>(); in GenerateRtpPacket()
335 uint32_t capture_timestamp = prng->Rand<uint32_t>(); in GenerateRtpPacket()
336 int64_t capture_time_ms = prng->Rand<uint32_t>(); in GenerateRtpPacket()
337 bool timestamp_provided = prng->Rand<bool>(); in GenerateRtpPacket()
[all …]
/external/epid-sdk/epid/member/tiny/unittests/
Djoin_request-test.cc127 Prng prng; in TEST_F() local
129 SetMemberParams(Prng::Generate, &prng, nullptr, &params); in TEST_F()
145 Prng prng; in TEST_F() local
147 SetMemberParams(Prng::Generate, &prng, nullptr, &params); in TEST_F()
155 Prng prng; in TEST_F() local
172 SetMemberParams(Prng::Generate, &prng, &f, &params); in TEST_F()
182 Prng prng; in TEST_F() local
197 SetMemberParams(Prng::Generate, &prng, &f, &params); in TEST_F()
222 Prng prng; in TEST_F() local
236 SetMemberParams(Prng::Generate, &prng, &f, &params); in TEST_F()
[all …]
Dprovision_credential-test.cc52 Prng prng; in TEST_F() local
64 SetMemberParams(&Prng::Generate, &prng, &f, &params); in TEST_F()
81 Prng prng; in TEST_F() local
94 SetMemberParams(&Prng::Generate, &prng, &f, &params); in TEST_F()
120 Prng prng; in TEST_F() local
132 SetMemberParams(&Prng::Generate, &prng, &f, &params); in TEST_F()
193 Prng prng; in TEST_F() local
206 SetMemberParams(&Prng::Generate, &prng, &f, &params); in TEST_F()
218 Prng prng; in TEST_F() local
230 SetMemberParams(&Prng::Generate, &prng, &f, &params); in TEST_F()
[all …]
Dprovision_key-test.cc51 Prng prng; in TEST_F() local
56 SetMemberParams(&Prng::Generate, &prng, nullptr, &params); in TEST_F()
73 Prng prng; in TEST_F() local
78 SetMemberParams(&Prng::Generate, &prng, nullptr, &params); in TEST_F()
87 Prng prng; in TEST_F() local
99 SetMemberParams(&Prng::Generate, &prng, nullptr, &params); in TEST_F()
107 Prng prng; in TEST_F() local
114 SetMemberParams(&Prng::Generate, &prng, nullptr, &params); in TEST_F()
175 Prng prng; in TEST_F() local
185 SetMemberParams(&Prng::Generate, &prng, nullptr, &params); in TEST_F()
[all …]
Dprovision_compressed-test.cc52 Prng prng; in TEST_F() local
60 SetMemberParams(&Prng::Generate, &prng, nullptr, &params); in TEST_F()
78 Prng prng; in TEST_F() local
86 SetMemberParams(&Prng::Generate, &prng, nullptr, &params); in TEST_F()
95 Prng prng; in TEST_F() local
103 SetMemberParams(&Prng::Generate, &prng, nullptr, &params); in TEST_F()
150 Prng prng; in TEST_F() local
158 SetMemberParams(&Prng::Generate, &prng, nullptr, &params); in TEST_F()
/external/epid-sdk/epid/member/unittests/
Djoin_request-test.cc128 Prng prng; in TEST_F() local
130 SetMemberParams(Prng::Generate, &prng, nullptr, &params); in TEST_F()
143 Prng prng; in TEST_F() local
160 SetMemberParams(Prng::Generate, &prng, &f, &params); in TEST_F()
170 Prng prng; in TEST_F() local
185 SetMemberParams(Prng::Generate, &prng, &f, &params); in TEST_F()
210 Prng prng; in TEST_F() local
224 SetMemberParams(Prng::Generate, &prng, &f, &params); in TEST_F()
235 Prng prng; in TEST_F() local
244 SetMemberParams(Prng::Generate, &prng, nullptr, &params); in TEST_F()
[all …]
Dprovision_credential-test.cc54 Prng prng; in TEST_F() local
66 SetMemberParams(&Prng::Generate, &prng, &f, &params); in TEST_F()
83 Prng prng; in TEST_F() local
96 SetMemberParams(&Prng::Generate, &prng, &f, &params); in TEST_F()
122 Prng prng; in TEST_F() local
134 SetMemberParams(&Prng::Generate, &prng, &f, &params); in TEST_F()
195 Prng prng; in TEST_F() local
208 SetMemberParams(&Prng::Generate, &prng, &f, &params); in TEST_F()
220 Prng prng; in TEST_F() local
232 SetMemberParams(&Prng::Generate, &prng, &f, &params); in TEST_F()
[all …]
Dprovision_key-test.cc53 Prng prng; in TEST_F() local
58 SetMemberParams(&Prng::Generate, &prng, nullptr, &params); in TEST_F()
75 Prng prng; in TEST_F() local
80 SetMemberParams(&Prng::Generate, &prng, nullptr, &params); in TEST_F()
89 Prng prng; in TEST_F() local
101 SetMemberParams(&Prng::Generate, &prng, nullptr, &params); in TEST_F()
109 Prng prng; in TEST_F() local
116 SetMemberParams(&Prng::Generate, &prng, nullptr, &params); in TEST_F()
177 Prng prng; in TEST_F() local
187 SetMemberParams(&Prng::Generate, &prng, nullptr, &params); in TEST_F()
[all …]
Dprovision_compressed-test.cc53 Prng prng; in TEST_F() local
61 SetMemberParams(&Prng::Generate, &prng, nullptr, &params); in TEST_F()
79 Prng prng; in TEST_F() local
87 SetMemberParams(&Prng::Generate, &prng, nullptr, &params); in TEST_F()
97 Prng prng; in TEST_F() local
105 SetMemberParams(&Prng::Generate, &prng, nullptr, &params); in TEST_F()
152 Prng prng; in TEST_F() local
160 SetMemberParams(&Prng::Generate, &prng, nullptr, &params); in TEST_F()
Dcontext-test.cc212 Prng prng; in TEST_F() local
216 SetMemberParams(&Prng::Generate, &prng, nullptr, &params); in TEST_F()
582 Prng prng; in TEST_F() local
599 Tpm2CtxObj tpm(&Prng::Generate, &prng, nullptr, epid2params); in TEST_F()
611 SetMemberParams(&Prng::Generate, &prng, &f, &params); in TEST_F()
/external/epid-sdk/example/signmsg/src/
Dprng.c27 EpidStatus PrngCreate(void** prng) { in PrngCreate() argument
38 if (!prng) return kEpidBadArgErr; in PrngCreate()
78 *prng = prng_ctx; in PrngCreate()
88 void PrngDelete(void** prng) { in PrngDelete() argument
89 if (prng && *prng) { in PrngDelete()
90 free(*prng); in PrngDelete()
91 *prng = NULL; in PrngDelete()
Dsignmsg.c43 void* prng = NULL; in SignMsg() local
83 sts = PrngCreate(&prng); in SignMsg()
88 SetMemberParams(&PrngGen, prng, NULL, &params); in SignMsg()
189 PrngDelete(&prng); in SignMsg()
Dprng.h34 EpidStatus PrngCreate(void** prng);
37 void PrngDelete(void** prng);
/external/epid-sdk/epid/member/tpm2/unittests/
Dcommit-test.cc155 Prng prng; in TEST_F() local
162 Tpm2CtxObj tpm(&Prng::Generate, &prng, &f_str, epid2params); in TEST_F()
178 Prng prng; in TEST_F() local
183 Tpm2CtxObj tpm(&Prng::Generate, &prng, &f_str, epid2params); in TEST_F()
207 Prng prng; in TEST_F() local
212 Tpm2CtxObj tpm(&Prng::Generate, &prng, &f_str, epid2params); in TEST_F()
231 Prng prng; in TEST_F() local
234 Tpm2CtxObj tpm(&Prng::Generate, &prng, &f_str, epid2params); in TEST_F()
262 Prng prng; in TEST_F() local
265 Tpm2CtxObj tpm(&Prng::Generate, &prng, &f_str, epid2params); in TEST_F()
[all …]
Dcreateprimary-test.cc40 Prng prng; in TEST_F() local
42 Tpm2CtxObj tss(Prng::Generate, &prng, nullptr, epid2params); in TEST_F()
/external/epid-sdk/epid/common/math/unittests/
Decdsa_sign-test.cc150 Prng prng; in TEST_F() local
152 void* rnd_param = &prng; in TEST_F()
217 Prng prng; in TEST_F() local
219 void* rnd_param = &prng; in TEST_F()
/external/llvm/lib/Transforms/Utils/
DMetaRenamer.cpp53 prng.srand(seed); in Renamer()
57 return metaNames[prng.rand() % array_lengthof(metaNames)]; in newName()
60 PRNG prng; member
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DMetaRenamer.cpp62 prng.srand(seed); in Renamer()
66 return metaNames[prng.rand() % array_lengthof(metaNames)]; in newName()
69 PRNG prng; member
/external/bsdiff/
Dbsdiff_unittest.cc21 std::minstd_rand prng(1234 + buffer->size()); in GenerateRandomBuffer() local
22 std::generate(buffer->begin(), buffer->end(), prng); in GenerateRandomBuffer()
/external/libaom/libaom/test/
Dconvolve_test.cc354 ::libaom_test::ACMRandom prng; in SetUp()
360 input_[i] = prng.Rand8Extremes(); in SetUp()
361 input16_[i] = prng.Rand16() & mask_; in SetUp()
593 ::libaom_test::ACMRandom prng; in TEST_P()
598 r = prng.Rand8Extremes(); in TEST_P()
600 r = prng.Rand16() & mask_; in TEST_P()
697 ::libaom_test::ACMRandom prng; in TEST_P()
702 r = prng.Rand8Extremes(); in TEST_P()
704 r = prng.Rand16() & mask_; in TEST_P()
/external/libvpx/libvpx/test/
Dconvolve_test.cc424 ::libvpx_test::ACMRandom prng; in SetUp()
432 input_[i] = prng.Rand8Extremes(); in SetUp()
434 input16_[i] = prng.Rand16() & mask_; in SetUp()
910 ::libvpx_test::ACMRandom prng; in TEST_P()
916 r = prng.Rand8Extremes(); in TEST_P()
918 r = prng.Rand16() & mask_; in TEST_P()
921 r = prng.Rand8Extremes(); in TEST_P()
989 ::libvpx_test::ACMRandom prng; in TEST_P()
995 r = prng.Rand8Extremes(); in TEST_P()
997 r = prng.Rand16() & mask_; in TEST_P()
[all …]
/external/python/cpython3/Misc/
Dvalgrind-python.supp316 openssl 1.0.1 prng 1
328 openssl 1.0.1 prng 2
339 openssl 1.0.1 prng 3
/external/tensorflow/tensorflow/compiler/xla/client/lib/
DBUILD238 name = "prng",
239 srcs = ["prng.cc"],
240 hdrs = ["prng.h"],
/external/jemalloc/
DAndroid.bp134 "src/prng.c",
240 "test/unit/prng.c",

12