Home
last modified time | relevance | path

Searched refs:rand_int (Results 1 – 4 of 4) sorted by relevance

/external/nanopb-c/tests/fuzztest/
Dfuzztest.c29 static int rand_int(int min, int max) in rand_int() function
89 pb_wire_type_t wt = rand_int(0, 3); in rand_fill_protobuf()
92 if (!pb_encode_tag(&stream, wt, rand_int(min_tag, min_tag + 512))) in rand_fill_protobuf()
137 int m = rand_int(0, 3); in rand_mess()
142 int s = rand_int(0, count - 1); in rand_mess()
149 int a = rand_int(0, count - 1); in rand_mess()
150 int b = rand_int(0, count - 1); in rand_mess()
158 int s = rand_int(0, count - 2); in rand_mess()
165 int s = rand_int(0, count - 1); in rand_mess()
186 while (rand_int(0, 7)) in do_static_encode()
[all …]
/external/grpc-grpc/third_party/nanopb/tests/fuzztest/
Dfuzztest.c29 static int rand_int(int min, int max) in rand_int() function
89 pb_wire_type_t wt = rand_int(0, 3); in rand_fill_protobuf()
92 if (!pb_encode_tag(&stream, wt, rand_int(min_tag, min_tag + 512))) in rand_fill_protobuf()
137 int m = rand_int(0, 3); in rand_mess()
142 int s = rand_int(0, count - 1); in rand_mess()
149 int a = rand_int(0, count - 1); in rand_mess()
150 int b = rand_int(0, count - 1); in rand_mess()
158 int s = rand_int(0, count - 2); in rand_mess()
165 int s = rand_int(0, count - 1); in rand_mess()
186 while (rand_int(0, 7)) in do_static_encode()
[all …]
/external/libevent/test/
Dtest-time.c55 rand_int(int n) in rand_int() function
70 j = rand_int(NEVENT); in time_cb()
72 tv.tv_usec = rand_int(50000); in time_cb()
108 tv.tv_usec = rand_int(50000); in main()
/external/tensorflow/tensorflow/python/keras/premade/
Dlinear_test.py117 rand_int = np.random.randint(3)
118 if rand_int == 0:
123 elif rand_int == 1: