Home
last modified time | relevance | path

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

12345678

/openbsd/gnu/lib/libstdc++/libstdc++/testsuite/26_numerics/
H A Dslice.cc54 std::srand(20020717); using std::rand; in main()
55 VERIFY(construction(rand(), rand(), rand())); in main()
57 VERIFY(copy(rand(), rand(), rand())); in main()
59 VERIFY(assignment(rand(), rand(), rand())); in main()
/openbsd/sys/arch/amd64/stand/libsa/
H A Dmdrandom.c42 unsigned long rand; in mdrandom() local
46 for (i = 0; i < buflen / sizeof(rand); i++) { in mdrandom()
52 : "=r" (rand), "=qm" (valid)); in mdrandom()
54 ((unsigned long *)buf)[i] ^= rand; in mdrandom()
62 unsigned long rand; in mdrandom() local
66 for (i = 0; i < buflen / sizeof(rand); i++) { in mdrandom()
72 : "=r" (rand), "=qm" (valid)); in mdrandom()
74 ((unsigned long *)buf)[i] ^= rand; in mdrandom()
/openbsd/sys/arch/i386/stand/libsa/
H A Dmdrandom.c47 unsigned long rand; in mdrandom() local
51 for (i = 0; i < buflen / sizeof(rand); i++) { in mdrandom()
57 : "=r" (rand), "=qm" (valid)); in mdrandom()
59 ((unsigned long *)buf)[i] ^= rand; in mdrandom()
67 unsigned long rand; in mdrandom() local
71 for (i = 0; i < buflen / sizeof(rand); i++) { in mdrandom()
77 : "=r" (rand), "=qm" (valid)); in mdrandom()
79 ((unsigned long *)buf)[i] ^= rand; in mdrandom()
/openbsd/gnu/usr.bin/perl/dist/Storable/t/
H A Dcanonical.t53 my($k) = int(rand(1_000_000));
54 $k = Digest::MD5::md5_hex($k) if $gotmd5 and int(rand(2));
59 if (int(rand(1.5))) {
61 my($hash2size) = int(rand($maxhash2size));
63 my($k2) = $k . $i . int(rand(100));
64 $hash2->{$k2} = $fixed_strings[rand(int(@fixed_strings))];
71 elsif (int(rand(2))) {
73 my($arraysize) = int(rand($maxarraysize));
75 push(@$arr_ref, $fixed_strings[rand(int(@fixed_strings))]);
/openbsd/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.other/
H A DexternC5.C4 extern "C" int rand (void) throw ();
8 extern "C" int rand(void) throw();
16 f(rand); in main()
17 f(std::rand); in main()
18 f(::rand); in main()
/openbsd/gnu/usr.bin/perl/t/op/
H A Drand.t74 my $n = rand(1);
104 $max = $min = rand(100);
106 my $n = rand(100);
125 my $r = rand;
127 is(rand(1), $r, 'rand() without args is rand(1)');
138 is(int rand(1000), 41, "our own implementation behaves consistently");
139 is(int rand(1000), 454, "and still consistently");
/openbsd/regress/lib/libz/
H A DMakefile24 .for zero rand in 0 0 0 1 1 0 0 10 5 5 10 0
26 REGRESS_TARGETS+= run-${stategy}-level${level}-zero${zero}-rand${rand}
28 run-${stategy}-level${level}-zero${zero}-rand${rand}: minigzip
30 dd status=none seek=${zero} count=${rand} if=/dev/random of=in bs=1k
/openbsd/regress/sys/crypto/enc/
H A Ddes3.c120 u_int32_t rand = 0; in main() local
125 rand = arc4random(); in main()
126 b1[i] = rand; in main()
127 rand >>= 8; in main()
131 rand = arc4random(); in main()
132 iv0[i] = rand; in main()
133 rand >>= 8; in main()
/openbsd/gnu/usr.bin/perl/cpan/Math-BigInt/t/
H A Dmbi_rand.t20 my $seed = @ARGV == 1 ? $ARGV[0] : int(rand(1165537));
41 $A_len = int(rand($length) + 1);
42 $B_len = int(rand($length) + 1);
53 $A_str .= int(rand(100)) x int(rand(16));
56 $B_str .= int(rand(100)) x int(rand(16));
/openbsd/gnu/usr.bin/perl/cpan/Math-BigInt-FastCalc/t/
H A Dmbi_rand.t20 my $seed = @ARGV == 1 ? $ARGV[0] : int(rand(1165537));
41 $A_len = int(rand($length) + 1);
42 $B_len = int(rand($length) + 1);
53 $A_str .= int(rand(100)) x int(rand(16));
56 $B_str .= int(rand(100)) x int(rand(16));
/openbsd/gnu/usr.bin/gcc/gcc/testsuite/gcc.dg/
H A D20020201-1.c10 int rand (void);
27 globvar = rand (); in doit()
28 if (rand () > 0) in doit()
/openbsd/gnu/usr.bin/perl/dist/threads/t/
H A Dthread.t155 # since it tests using rand()
156 my %rand : shared;
157 rand(10);
158 threads->create( sub { $rand{int(rand(10000000000))}++ } ) foreach 1..25;
160 ok((keys %rand >= 23), "Check that rand() is randomized in new threads")
161 or diag Dumper(\%rand);
/openbsd/lib/libc/stdlib/
H A Drand.c51 rand(void) in rand() function
59 __warn_references(rand,
H A DMakefile.inc11 radixsort.c rand.c random.c realpath.c remque.c setenv.c strtoimax.c \
32 ptsname.3 qsort.3 radixsort.3 rand48.3 rand.3 random.3 realpath.3 \
/openbsd/gnu/gcc/libgomp/testsuite/libgomp.c++/
H A Dloop-1.C13 N1 = rand () % 13; in main1()
14 N2 = rand () % (MAX - 51) + 50; in main1()
15 step = rand () % 7 + 1; in main1()
/openbsd/gnu/gcc/libgomp/testsuite/libgomp.c/
H A Domp-loop01.c13 N1 = rand () % 13; in main1()
14 N2 = rand () % (MAX - 51) + 50; in main1()
15 step = rand () % 7 + 1; in main1()
/openbsd/gnu/usr.bin/perl/cpan/Scalar-List-Utils/t/
H A Dmaxstr.t22 my @a = map { pack("u", pack("C*",map { int(rand(256))} (0..int(rand(10) + 2)))) } 0 .. 20;
H A Dminstr.t22 my @a = map { pack("u", pack("C*",map { int(rand(256))} (0..int(rand(10) + 2)))) } 0 .. 20;
/openbsd/regress/usr.bin/mandoc/mdoc/Fo/
H A Dnoarg.out_markdown16 **rand**()
26 **rand**()
/openbsd/gnu/usr.bin/perl/dist/Thread-Queue/t/
H A D01_basic.t37 select(undef, undef, undef, rand(1));
46 select(undef, undef, undef, rand(1));
90 select(undef, undef, undef, rand(1));
H A D09_ended.t43 select(undef, undef, undef, rand(1));
86 select(undef, undef, undef, rand(1));
128 select(undef, undef, undef, rand(1));
/openbsd/gnu/usr.bin/perl/dist/Time-HiRes/t/
H A Dualarm.t46 my $rand = ($max - $min) / 5;
49 $sum += rand($rand);
/openbsd/gnu/usr.bin/perl/cpan/Pod-Simple/t/
H A Dhtmlbat.t48 my $rand = sprintf "%05x", rand( 0x100000 );
49 $outdir = File::Spec->catdir( $t_dir, "delme-$rand-out" );
/openbsd/gnu/usr.bin/perl/ext/File-DosGlob/t/
H A DDosGlob.t150 eval '$x+'x(1+rand() * 100) . '<*>';
152 eval '$x+'x(1+rand() * 100) . '<*>';
/openbsd/gnu/lib/libstdc++/libstdc++/include/c_std/
H A Dstd_cstdlib.h74 #undef rand
108 using ::rand;

12345678