Searched refs:rand (Results 51 - 74 of 74) sorted by relevance
123
/haiku/src/tests/system/kernel/util/ |
H A D | OrderedMapTest.h | 77 return rand() % fDifferentValues; 85 sprintf(buffer, "%ld", rand() % fDifferentValues); 822 int32 index = rand() % (v.Count()); 862 int32 index = rand() % (i + 1);
|
/haiku/src/add-ons/media/media-add-ons/esound_sink/ |
H A D | ESDEndpoint.cpp | 108 key[i] = (char)(rand() % 256);
|
/haiku/src/tests/system/network/tcp_shell/ |
H A D | tcp_shell.cpp | 958 || (sRandomDrop > 0.0 && (1.0 * rand() / RAND_MAX) > sRandomDrop)) 964 add = (bigtime_t)(1.0 * rand() / RAND_MAX * 500000) - 250000; 966 sRoundTripTime += (bigtime_t)(1.0 * rand() / RAND_MAX * 150000); 1269 && (1.0 * rand() / RAND_MAX) > sRandomReorder) {
|
/haiku/src/apps/haikudepot/util/ |
H A D | StorageUtils.cpp | 306 buffer[i] = 65 + (abs(rand()) % 26);
|
/haiku/src/bin/unzip/ |
H A D | crypt.c | 45 the crypthead() function. The standard rand() library function is 48 seed value as argument to determine the starting point of the rand() 58 standard UNIX C runtime library functions: time(), rand(), srand(). 69 most implementations of rand() and srand(), only the lower 16 bits are 185 * output of rand() to get less predictability, since rand() is 193 c = (rand() >> 7) & 0xff;
|
H A D | cryptf.c | 48 the crypthead() function. The standard rand() library function is 51 seed value as argument to determine the starting point of the rand() 61 standard UNIX C runtime library functions: time(), rand(), srand(). 72 most implementations of rand() and srand(), only the lower 16 bits are 188 * output of rand() to get less predictability, since rand() is 196 c = (rand() >> 7) & 0xff;
|
/haiku/src/servers/app/stackandtile/ |
H A D | SATWindow.cpp | 482 int16 randNumber = rand();
|
/haiku/src/kits/network/libnetservices/ |
H A D | HttpForm.cpp | 659 fMultipartBoundary << (char)(rand() % 10 + '0');
|
/haiku/src/servers/app/ |
H A D | View.cpp | 392 case 0: color.green = rand() % 256; break; 393 case 1: color.blue = rand() % 256; break;
|
/haiku/src/tests/kits/app/bmessage/ |
H A D | MessageSpeedTest.cpp | 85 search << rand() % count; \
|
/haiku/src/system/libroot/posix/glibc/stdlib/ |
H A D | stdlib.h | 126 /* The largest number rand will return (same as INT_MAX). */ 421 The `rand' and `srand' functions are required by the ANSI standard. 474 extern int rand (void) __THROW;
|
/haiku/src/preferences/repositories/ |
H A D | RepositoriesView.cpp | 480 fLastCompletedTimerId = rand();
|
/haiku/src/add-ons/mail_daemon/outbound_protocols/smtp/ |
H A D | SMTP.cpp | 549 temp[i] = 1+(rand()%254);
|
/haiku/src/bin/pc/ |
H A D | pc.c | 181 else if (strcmp(name, "rand") == 0) 182 *val = (ULONG)rand();
|
/haiku/src/tests/kits/support/pointerlist/ |
H A D | PointerListTest.cpp | 95 return new Item(rand() % (MAX_ID+1));
|
/haiku/src/apps/sudoku/ |
H A D | SudokuView.cpp | 1265 x = rand() % fField->Size(); 1266 y = rand() % fField->Size();
|
/haiku/src/tests/kits/interface/layout/ |
H A D | LayoutTest1.cpp | 1531 int length = rand() % 20;
|
/haiku/src/servers/net/ |
H A D | DHCPClient.cpp | 489 fTransactionID = (uint32)system_time() ^ rand();
|
/haiku/src/add-ons/kernel/network/protocols/udp/ |
H A D | udp.cpp | 271 fLastUsedEphemeral = kFirst + rand() % (kLast - kFirst);
|
/haiku/src/system/libroot/stubbed/ |
H A D | libroot_stubs.c | 2303 void rand() {} function
|
H A D | libroot_stubs_legacy.c | 2282 void rand() {} function
|
/haiku/src/apps/aboutsystem/ |
H A D | AboutSystem.cpp | 1520 BString* s = (BString*)haikuList.ItemAt(rand() % haikuList.CountItems());
|
/haiku/headers/cpp/ |
H A D | stl_algo.h | 833 // whether we're using rand (part of the standard C library) or lrand48 839 return rand() % __n;
|
/haiku/src/apps/mail/ |
H A D | MailWindow.cpp | 1489 PostMessage((BMessage*)sigList.ItemAt(rand()
|
Completed in 561 milliseconds
123