Home
last modified time | relevance | path

Searched refs:rand_val (Results 1 – 7 of 7) sorted by relevance

/external/ltp/testcases/network/stress/ns-tools/
Dns-icmpv4_sender.c415 int rand_val; in thrust_fakes() local
442 rand_val = rand() / ((RAND_MAX + 1U) / 16); in thrust_fakes()
443 if (!rand_val) { in thrust_fakes()
450 rand_val = rand() / ((RAND_MAX + 1U) / 3); in thrust_fakes()
451 if (!rand_val) { in thrust_fakes()
458 rand_val = rand() / ((RAND_MAX + 1U) / 3); in thrust_fakes()
459 if (!rand_val) { in thrust_fakes()
466 rand_val = rand() / ((RAND_MAX + 1U) / 3); in thrust_fakes()
467 if (!rand_val) { in thrust_fakes()
478 rand_val = rand() / ((RAND_MAX + 1U) / 5); in thrust_fakes()
[all …]
Dns-common.c204 int rand_val; in rand_within() local
210 rand_val = rand() / ((RAND_MAX + 1U) / num) + first; in rand_within()
212 return rand_val; in rand_within()
230 int rand_val; in bit_change_seed() local
232 rand_val = rand() / ((RAND_MAX + 1U) / (bitsize + oversize)); in bit_change_seed()
234 seed = (rand_val < bitsize) ? (0x00000001 << rand_val) : 0; in bit_change_seed()
Dns-icmpv6_sender.c638 int rand_val; in thrust_fakes() local
658 rand_val = rand() / ((RAND_MAX + 1U) / 5); in thrust_fakes()
659 switch (rand_val) { in thrust_fakes()
673 if (rand_val) { in thrust_fakes()
695 rand_val = rand() / ((RAND_MAX + 1U) / 4); in thrust_fakes()
696 bitsize = sizeof(pkt->hdr.ip6_dst.s6_addr32[rand_val]) * 8; in thrust_fakes()
698 pkt->hdr.ip6_dst.s6_addr32[rand_val] ^= seed; in thrust_fakes()
/external/toolchain-utils/afdo_tools/bisection/
Dafdo_prof_analysis_test.py27 rand_val = random.randint(1, 101) variable in AfdoProfAnalysisTest
28 if rand_val < 67:
30 if rand_val < 34 or rand_val >= 67:
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/translate/
Dtf_mlir_translate.cc242 mlir::Attribute rand_val; in GraphdefToSplattedMlirTranslateFunction() local
245 rand_val = mlir::IntegerAttr::get(element_type, std::rand()); in GraphdefToSplattedMlirTranslateFunction()
248 rand_val = mlir::FloatAttr::get(element_type, in GraphdefToSplattedMlirTranslateFunction()
258 mlir::DenseElementsAttr::get(attr.getType(), rand_val); in GraphdefToSplattedMlirTranslateFunction()
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dstream_executor_util.cc273 auto rand_val = UniformDistribution(RandomType(0), upper_bound, &gen); in InitializeTypedBuffer() local
278 element = T(std::is_integral<T>::value ? rand_val + 0.5 : rand_val); in InitializeTypedBuffer()
/external/tensorflow/tensorflow/core/kernels/data/experimental/
Dsampling_dataset_op.cc133 float rand_val = Random(); in GetNextInternal() local
134 rand_val_hit = rand_val < dataset()->rate_; in GetNextInternal()