Home
last modified time | relevance | path

Searched refs:rand (Results 1 – 25 of 66) sorted by relevance

123

/glibc-2.36/stdlib/
Dtestrand.c30 i1 = rand(); in main()
31 i2 = rand(); in main()
33 j1 = rand(); in main()
34 j2 = rand(); in main()
Drand.c20 #undef rand
25 rand (void) in rand() function
DVersions58 rand; rand_r; random; random_r; realpath; rpmatch;
DMakefile107 rand \
Dstdlib.h454 extern int rand (void) __THROW;
/glibc-2.36/benchtests/
Dbench-memcpy-random.c157 test_arr[i].dst = (rand () & (max_size - 1)); in do_test()
158 test_arr[i].dst &= ~dst_align_arr[rand () & ALIGN_MASK]; in do_test()
159 test_arr[i].src = (rand () & (max_size - 1)); in do_test()
160 test_arr[i].src &= ~src_align_arr[rand () & ALIGN_MASK]; in do_test()
161 test_arr[i].len = size_arr[rand () & SIZE_MASK]; in do_test()
Dbench-malloc-thread.c82 random_block_sizes[i] = get_block_size (rand ()); in init_random_values()
85 random_offsets[i] = rand () % WORKING_SET_SIZE; in init_random_values()
Dbench-strstr.c296 hs[i] = (rand () & 255) > 155 ? 'a' : 'b'; in test_hard_needle()
325 hs[i] = (rand () & 255) >= 128 ? 'a' : 'b'; in test_hard_needle()
Dbench-math-inlines.c259 int x = rand () & 255; in test_main()
Dbench-strchr.c169 if (rand () > perc_zero_int) in do_rand_test()
/glibc-2.36/sysdeps/pthread/
Dtst-cond18.c47 int njobs = rand () % (count + 1); in tf()
49 if ((rand () % 30) == 0) in tf()
/glibc-2.36/sysdeps/powerpc/
Dtest-arith.c129 bitset(bitoffset, rand() & 1); in pattern_fill()
136 bitset(bitoffset, op ^= (rand() & 1)); in pattern_fill()
146 int r = rand() & 1; in pattern_fill()
150 bitset(bitoffset, rand() & (op ^ 1)); in pattern_fill()
/glibc-2.36/support/
Dtst-xreadlink.c42 contents[i] = 'a' + (rand () % 26); in do_test()
Dtst-support_capture_subprocess.c174 result[i] = 'a' + (rand () % 26); in random_string()
/glibc-2.36/sysdeps/unix/sysv/linux/netrose/
Drose.h113 unsigned int rand; member
/glibc-2.36/elf/
Dtst-tls-manydynamic.c124 values[i].num[j] = rand (); in do_test()
/glibc-2.36/malloc/
Dtst-safe-linking.c41 rand_mask = rand () & 0xFF; in check()
/glibc-2.36/io/
Dtst-copy_file_range.c238 *p = rand () >> 24; in do_test()
/glibc-2.36/conform/data/
Dstdlib.h-data135 function int rand (void)
/glibc-2.36/manual/
Dmath.texi1439 @w{ISO C} interface, @code{rand} and @code{srand}. The SVID functions
1447 * ISO Random:: @code{rand} and friends.
1466 value the @code{rand} function can return. In @theglibc{}, it is
1471 @deftypefun int rand (void)
1475 The @code{rand} function returns the next pseudo-random number in the
1484 pseudo-random numbers. If you call @code{rand} before a seed has been
1500 just as @code{rand} does. However, all its state is stored in the
2008 @code{2^32−1} (inclusive), which is twice the range of @code{rand} and
Dcontrib.texi524 @code{rand} and @code{srand} functions, were written by Earl T. Cohen
Dsetjmp.texi454 if (fp (rand (), &uc) != 0)
/glibc-2.36/stdio-common/
Dtst-vfprintf-mbs-prec.c71 uint32_t ch = 1 + (rand () % 521); in make_random_string()
/glibc-2.36/localedata/
Dhu_HU.UTF-8.in79 AkH-14-c1 írandó
/glibc-2.36/sysdeps/unix/sysv/linux/or1k/
Dlibc.abilist1580 GLIBC_2.35 rand F

123