random 78 lib/tdb/tools/tdbtorture.c if (random() % CULL_PROB == 0) {
random 104 lib/tdb/tools/tdbtorture.c if (in_transaction == 0 && random() % TRANSACTION_PROB == 0) {
random 111 lib/tdb/tools/tdbtorture.c if (in_transaction && random() % TRANSACTION_PROB == 0) {
random 118 lib/tdb/tools/tdbtorture.c if (in_transaction && random() % TRANSACTION_PROB == 0) {
random 128 lib/tdb/tools/tdbtorture.c if (in_transaction == 0 && random() % REOPEN_PROB == 0) {
random 135 lib/tdb/tools/tdbtorture.c if (random() % DELETE_PROB == 0) {
random 142 lib/tdb/tools/tdbtorture.c if (random() % STORE_PROB == 0) {
random 151 lib/tdb/tools/tdbtorture.c if (random() % APPEND_PROB == 0) {
random 160 lib/tdb/tools/tdbtorture.c if (random() % LOCKSTORE_PROB == 0) {
random 173 lib/tdb/tools/tdbtorture.c if (random() % TRAVERSE_PROB == 0) {
random 180 lib/tdb/tools/tdbtorture.c if (random() % TRAVERSE_READ_PROB == 0) {
random 297 lib/util/charset/tests/iconv.c buf[size] = random();
random 298 lib/util/charset/tests/iconv.c buf[size+1] = random();
random 299 lib/util/charset/tests/iconv.c buf[size+2] = random();
random 300 lib/util/charset/tests/iconv.c buf[size+3] = random();
random 374 lib/util/charset/tests/iconv.c size = random() % 100;
random 376 lib/util/charset/tests/iconv.c if (random() % 100 < 80) {
random 377 lib/util/charset/tests/iconv.c inbuf[c] = random() % 128;
random 379 lib/util/charset/tests/iconv.c inbuf[c] = random();
random 381 lib/util/charset/tests/iconv.c if (random() % 10 == 0) {
random 384 lib/util/charset/tests/iconv.c if (random() % 10 == 0) {
random 407 lib/util/charset/tests/iconv.c size_t len = (random()%1000)+1;
random 45 lib/util/tests/idtree.c int ii = random() % n;
random 53 lib/util/tests/idtree.c if (random() % 7 == 0) {
random 70 lib/util/tests/idtree.c if (random() % 5) {
random 97 lib/util/tests/idtree.c ret = idr_get_new_above(idr, &ids[0], random() % 25000, 0x10000-3);
random 549 librpc/gen_ndr/nbt.h uint32_t random;
random 2257 librpc/gen_ndr/ndr_nbt.c NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->random));
random 2316 librpc/gen_ndr/ndr_nbt.c NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->random));
random 2378 librpc/gen_ndr/ndr_nbt.c ndr_print_uint32(ndr, "random", r->random);
random 903 source3/lib/dbwrap_ctdb.c || (random() % 2 != 0)
random 154 source3/lib/system.c if ((random() % 5) == 0) {
random 159 source3/lib/system.c (random() % (iov[0].iov_len-1)) + 1);
random 708 source3/lib/system.c return (long)random();
random 42 source3/libaddns/dnsrecord.c req->id = random();
random 74 source3/libaddns/dnsrecord.c req->id = random();
random 201 source3/modules/vfs_streams_depot.c newname = talloc_asprintf(talloc_tos(), "lost-%lu", random());
random 1829 source3/smbd/process.c last_printer_reload_time += random() % time_range;
random 466 source3/torture/locktest.c recorded[n].conn = random() % NCONNECTIONS;
random 467 source3/torture/locktest.c recorded[n].f = random() % NFILES;
random 468 source3/torture/locktest.c recorded[n].start = lock_base + ((unsigned)random() % (lock_range-1));
random 470 source3/torture/locktest.c random() % (lock_range-(recorded[n].start-lock_base));
random 473 source3/torture/locktest.c r1 = random() % 100;
random 474 source3/torture/locktest.c r2 = random() % 100;
random 386 source3/torture/locktest2.c recorded[n].conn = random() % NCONNECTIONS;
random 387 source3/torture/locktest2.c recorded[n].fstype = random() % NUMFSTYPES;
random 388 source3/torture/locktest2.c recorded[n].f = random() % NFILES;
random 389 source3/torture/locktest2.c recorded[n].start = LOCKBASE + ((unsigned)random() % (LOCKRANGE-1));
random 391 source3/torture/locktest2.c random() % (LOCKRANGE-(recorded[n].start-LOCKBASE));
random 394 source3/torture/locktest2.c recorded[n].r1 = random() % 100;
random 395 source3/torture/locktest2.c recorded[n].r2 = random() % 100;
random 120 source3/torture/mangle_test.c len = 1 + random() % NAME_LENGTH;
random 123 source3/torture/mangle_test.c p[i] = chars[random() % max_idx];
random 133 source3/torture/mangle_test.c if (random() % 2 == 0) {
random 138 source3/torture/mangle_test.c if (random() % 10 == 0) {
random 148 source3/torture/mangle_test.c if (random() % 2 == 0) {
random 391 source3/torture/masktest.c l1 = 1 + random() % 20;
random 392 source3/torture/masktest.c l2 = 1 + random() % 20;
random 402 source3/torture/masktest.c mask[i+l] = maskchars[random() % mc_len];
random 407 source3/torture/masktest.c file[i+l] = filechars[random() % fc_len];
random 1036 source3/torture/torture.c lock_timeout = (1 + (random() % 20));
random 4470 source3/torture/torture.c slprintf(fname, sizeof(fname), "\\%x", (int)random());
random 4490 source3/torture/torture.c slprintf(fname, sizeof(fname), "\\%x", (int)random());
random 5591 source3/torture/torture.c if (asprintf(&key, "key%ld", random()) == -1) {
random 5594 source3/torture/torture.c if (asprintf(&value, "value%ld", random()) == -1) {
random 5606 source3/torture/torture.c if (asprintf(&value, "value%ld", random()) == -1) {
random 6051 source3/torture/torture.c (unsigned)random());
random 443 source4/heimdal/lib/roken/getarg.c *flag = random() & 1;
random 664 source4/heimdal/lib/roken/resolve.c rnd = random() % (sum + 1);
random 622 source4/lib/messaging/messaging.c id.id = random() % 0x10000000;
random 258 source4/lib/messaging/tests/irpc.c values[4] = random() & 0xFFFFFFFF;
random 203 source4/lib/socket/socket.c if (random() % 10 == 0) {
random 207 source4/lib/socket/socket.c return sock->ops->fn_recv(sock, buf, 1+(random() % wantlen), nread);
random 249 source4/lib/socket/socket.c if (random() % 10 == 0) {
random 256 source4/lib/socket/socket.c blob2.length = 1+(random() % blob2.length);
random 39 source4/lib/socket/testsuite.c size_t size = 100 + (random() % 100);
random 123 source4/lib/socket/testsuite.c size_t size = 100 + (random() % 100);
random 307 source4/librpc/rpc/dcerpc_auth.c sec->auth_info->auth_context_id = random();
random 679 source4/nbt_server/wins/winsserver.c r = random();
random 573 source4/torture/basic/base.c size_t buf_size = ((uint_t)random()%(sizeof(buf)-1))+ 1;
random 1336 source4/torture/basic/base.c num_reads = random() % 10;
random 1337 source4/torture/basic/base.c num_writes = random() % 3;
random 1345 source4/torture/basic/base.c random() % filesize, sizeof(buf));
random 1356 source4/torture/basic/base.c random() % filesize, sizeof(buf));
random 1786 source4/torture/basic/denytest.c int b_sa1 = random() & ((1<<nbits1)-1);
random 1787 source4/torture/basic/denytest.c int b_am1 = random() & ((1<<nbits2)-1);
random 1788 source4/torture/basic/denytest.c int b_sa2 = random() & ((1<<nbits1)-1);
random 1789 source4/torture/basic/denytest.c int b_am2 = random() & ((1<<nbits2)-1);
random 1803 source4/torture/basic/denytest.c if (random() % 2 == 0) {
random 51 source4/torture/basic/dir.c asprintf(&fname, "\\%x", (int)random());
random 71 source4/torture/basic/dir.c asprintf(&fname, "\\%x", (int)random());
random 108 source4/torture/basic/locking.c lock_timeout = (6 + (random() % 20));
random 126 source4/torture/basic/mangle_test.c len = 1 + random() % NAME_LENGTH;
random 132 source4/torture/basic/mangle_test.c p[i] = chars[random() % max_idx];
random 142 source4/torture/basic/mangle_test.c if (random() % 2 == 0) {
random 147 source4/torture/basic/mangle_test.c if ((len > 5) && (random() % 10 == 0)) {
random 152 source4/torture/basic/mangle_test.c if (random() % 2 == 0) {
random 73 source4/torture/basic/misc.c uint_t n = (uint_t)random()%10;
random 561 source4/torture/basic/misc.c if (random() % state->lp_params->writeratio == 0) {
random 346 source4/torture/gentest.c h = random() % options.max_open_handles;
random 382 source4/torture/gentest.c h = random() % options.max_open_handles;
random 455 source4/torture/gentest.c return ((random() % 100) <= chance);
random 487 source4/torture/gentest.c h = random() % options.max_open_handles;
random 514 source4/torture/gentest.c uint_t r = random();
random 633 source4/torture/gentest.c return mask & random();
random 645 source4/torture/gentest.c uint_t ret = random();
random 837 source4/torture/gentest.c return (time_t)random();
random 846 source4/torture/gentest.c return random() % 50;
random 878 source4/torture/gentest.c ret = random() % 4*1024*1024;
random 3074 source4/torture/gentest.c op_parms[op].seed = random();
random 359 source4/torture/libnet/libnet_user.c testfld = (req_change == none) ? (random() % FIELDS_NUM) : req_change;
random 368 source4/torture/libnet/libnet_user.c (int)(random() % 100));
random 378 source4/torture/libnet/libnet_user.c (unsigned int)random(), (unsigned int)random());
random 385 source4/torture/libnet/libnet_user.c (long)random());
random 391 source4/torture/libnet/libnet_user.c homedir = home_dirs[random() % ARRAY_SIZE(home_dirs)];
random 398 source4/torture/libnet/libnet_user.c homedrive = home_drives[random() % ARRAY_SIZE(home_drives)];
random 406 source4/torture/libnet/libnet_user.c (unsigned long)random(), (unsigned long)random());
random 412 source4/torture/libnet/libnet_user.c logonscript = logon_scripts[random() % ARRAY_SIZE(logon_scripts)];
random 420 source4/torture/libnet/libnet_user.c (unsigned long)random(), (unsigned int)random());
random 426 source4/torture/libnet/libnet_user.c now = timeval_add(&now, (random() % (31*24*60*60)), 0);
random 433 source4/torture/libnet/libnet_user.c r->in.acct_flags = flags[random() % ARRAY_SIZE(flags)];
random 114 source4/torture/libnet/userman.c testfld = (random() % (FIELDS_NUM - 1)) + 1;
random 122 source4/torture/libnet/userman.c (int)(random() % 100));
random 131 source4/torture/libnet/userman.c (int)random(), (int)random());
random 139 source4/torture/libnet/userman.c random());
random 146 source4/torture/libnet/userman.c homedir = home_dirs[random() % (sizeof(home_dirs)/sizeof(char*))];
random 154 source4/torture/libnet/userman.c homedrive = home_drives[random() % (sizeof(home_drives)/sizeof(char*))];
random 163 source4/torture/libnet/userman.c random(), random());
random 170 source4/torture/libnet/userman.c logonscript = logon_scripts[random() % (sizeof(logon_scripts)/sizeof(char*))];
random 179 source4/torture/libnet/userman.c (long int)random(), (unsigned int)random());
random 186 source4/torture/libnet/userman.c now = timeval_add(&now, (random() % (31*24*60*60)), 0);
random 194 source4/torture/libnet/userman.c mod->in.change.acct_flags = flags[random() % ARRAY_SIZE(flags)];
random 97 source4/torture/local/dbspeed.c i = random() % torture_entries;
random 215 source4/torture/local/dbspeed.c i = random() % torture_entries;
random 428 source4/torture/locktest.c recorded[n].conn = random() % NCONNECTIONS;
random 429 source4/torture/locktest.c recorded[n].f = random() % NFILES;
random 430 source4/torture/locktest.c recorded[n].start = lock_base + ((uint_t)random() % (lock_range-1));
random 432 source4/torture/locktest.c random() % (lock_range-(recorded[n].start-lock_base));
random 435 source4/torture/locktest.c recorded[n].pid = random()%3;
random 439 source4/torture/locktest.c r1 = random() % 100;
random 440 source4/torture/locktest.c r2 = random() % 100;
random 384 source4/torture/locktest2.c recorded[n].conn = random() % NCONNECTIONS;
random 385 source4/torture/locktest2.c recorded[n].fstype = random() % NUMFSTYPES;
random 386 source4/torture/locktest2.c recorded[n].f = random() % NFILES;
random 387 source4/torture/locktest2.c recorded[n].start = LOCKBASE + ((uint_t)random() % (LOCKRANGE-1));
random 389 source4/torture/locktest2.c random() % (LOCKRANGE-(recorded[n].start-LOCKBASE));
random 392 source4/torture/locktest2.c recorded[n].r1 = random() % 100;
random 393 source4/torture/locktest2.c recorded[n].r2 = random() % 100;
random 246 source4/torture/masktest.c l1 = 1 + random() % max_length;
random 247 source4/torture/masktest.c l2 = 1 + random() % max_length;
random 254 source4/torture/masktest.c mask[i+l] = maskchars[random() % mc_len];
random 259 source4/torture/masktest.c file[i+l] = filechars[random() % fc_len];
random 404 source4/torture/nbt/wins.c uint32_t r = (uint32_t)(random() % (100000));
random 210 source4/torture/nbt/winsbench.c if (random() % 5 == 0) {
random 215 source4/torture/nbt/winsbench.c if (random() % 20 == 0) {
random 55 source4/torture/raw/composite.c size_t len = random() % 100000;
random 134 source4/torture/raw/composite.c size_t len = random() % 10000;
random 88 source4/torture/raw/lookuprate.c current = random();
random 227 source4/torture/raw/offline.c state->op = (enum offline_op) (random() % OP_ENDOFLIST);
random 229 source4/torture/raw/offline.c state->fnumber = random() % torture_numops;
random 61 source4/torture/raw/read.c for (i=0;i<len;i++) buf[i] = random();
random 72 source4/torture/raw/read.c uint8_t v = random();
random 75 source4/torture/raw/write.c for (i=0;i<len;i++) buf[i] = random();
random 86 source4/torture/raw/write.c uint8_t v = random();
random 58 source4/torture/rpc/echo.c TEST_ADDONE(tctx, random() & 0xFFFFFFFF);
random 76 source4/torture/rpc/echo.c len = 1 + (random() % 500);
random 78 source4/torture/rpc/echo.c len = 1 + (random() % 5000);
random 123 source4/torture/rpc/echo.c len = 100 + (random() % 500);
random 125 source4/torture/rpc/echo.c len = 200000 + (random() % 5000);
random 157 source4/torture/rpc/echo.c len = 100 + (random() % 5000);
random 159 source4/torture/rpc/echo.c len = 200000 + (random() % 5000);
random 1182 source4/torture/rpc/lsa.c secname[LOCAL] = talloc_asprintf(tctx, "torturesecret-%u", (uint_t)random());
random 1183 source4/torture/rpc/lsa.c secname[GLOBAL] = talloc_asprintf(tctx, "G$torturesecret-%u", (uint_t)random());
random 1663 source4/torture/rpc/lsa.c uint16_t language_id = (random() % 4) + 0x409;
random 568 source4/torture/rpc/samr.c size_t len = MAX(8, min_len) + (random() % 6);
random 5932 source4/torture/rpc/samr.c s.in.unknown1 = random();
random 5933 source4/torture/rpc/samr.c s.in.unknown2 = random();
random 56 source4/torture/rpc/session_key.c secname = talloc_asprintf(tctx, "torturesecret-%u", (uint_t)random());