/haiku-fatelf/src/kits/network/libnetapi/ |
H A D | SSL.cpp | 22 int64 seed = find_thread(NULL) ^ system_time(); local 23 RAND_seed(&seed, sizeof(seed));
|
/haiku-fatelf/src/bin/bash/lib/readline/ |
H A D | mbutil.c | 76 _rl_find_next_mbchar_internal (string, seed, count, find_non_zero) 78 int seed, count, find_non_zero; 88 if (seed < 0) 89 seed = 0; 91 return seed; 93 point = seed + _rl_adjust_point (string, seed, &ps); 94 /* if this is true, means that seed was not pointing to a byte indicating 97 if (seed < point) 143 _rl_find_prev_mbchar_internal (string, seed, find_non_zer [all...] |
/haiku-fatelf/src/bin/gdb/readline/ |
H A D | mbutil.c | 76 _rl_find_next_mbchar_internal (string, seed, count, find_non_zero) 78 int seed, count, find_non_zero; 86 if (seed < 0) 87 seed = 0; 89 return seed; 91 point = seed + _rl_adjust_point(string, seed, &ps); 92 /* if this is true, means that seed was not pointed character 94 if (seed < point) 142 _rl_find_prev_mbchar_internal (string, seed, find_non_zer [all...] |
/haiku-fatelf/src/add-ons/translators/exr/openexr/imath/ |
H A D | ImathRandom.h | 78 Rand32 (unsigned long int seed = 0); 82 // Re-initialize with a given seed 85 void init (unsigned long int seed); 138 Rand48 (unsigned long int seed = 0); 142 // Re-initialize with a given seed 145 void init (unsigned long int seed); 231 void srand48 (long int seed); 240 Rand32::init (unsigned long int seed) argument 242 _state = (seed * 0xa5a573a5L) ^ 0x5a5a5a5aL; 247 Rand32::Rand32 (unsigned long int seed) argument 286 init(unsigned long int seed) argument 297 Rand48(unsigned long int seed) argument [all...] |
H A D | ImathRandom.cpp | 163 srand48 (long int seed) argument 165 staticState[2] = seed >> 16; 166 staticState[1] = seed;
|
/haiku-fatelf/src/system/libroot/posix/stdlib/ |
H A D | rand.c | 51 * The random sequences do not vary much with the seed, 99 srand(seed) 100 u_int seed; 102 next = seed; 110 * Many programs choose the seed value in a totally predictable manner. 111 * This often causes problems. We seed the generator using the much more
|
H A D | random.c | 43 * interface. The initstate() routine is called with a seed, an array of 156 /* The random sequences do not vary much with the seed */ 213 * The random sequences do not vary much with the seed, 240 * Initialize the random number generator based on the given seed. If the 241 * type is the trivial no-state-information type, just remember the seed. 242 * Otherwise, initializes state[] based on the given "seed" via a linear 272 * Many programs choose the seed value in a totally predictable manner. 273 * This often causes problems. We seed the generator using the much more 278 * a fixed seed. 340 initstate(unsigned int seed, cha argument [all...] |
/haiku-fatelf/src/bin/coreutils/lib/ |
H A D | rand-isaac.c | 96 * The basic seed-scrambling step for initialization, based on Bob 112 isaac_mix (struct isaac_state *s, uint32_t const seed[/* ISAAC_WORDS */]) 126 a += seed[i]; 127 b += seed[i + 1]; 128 c += seed[i + 2]; 129 d += seed[i + 3]; 130 e += seed[i + 4]; 131 f += seed[i + 5]; 132 g += seed[i + 6]; 133 h += seed[ [all...] |
H A D | stdlib.in.h | 324 int srandom_r (unsigned int seed, struct random_data *rand_state) 326 int initstate_r (unsigned int seed, char *buf, size_t buf_size,
|
/haiku-fatelf/src/system/libroot/posix/glibc/stdlib/ |
H A D | random.c | 62 interface. The initstate() routine is called with a seed, an array of 202 /* Initialize the random number generator based on the given seed. If the 203 type is the trivial no-state-information type, just remember the seed. 204 Otherwise, initializes state[] based on the given "seed" via a linear 235 __initstate (seed, arg_state, n) 236 unsigned int seed; 246 __initstate_r (seed, arg_state, n, &unsafe_state);
|
H A D | random_r.c | 63 interface. The initstate() routine is called with a seed, an array of 154 /* Initialize the random number generator based on the given seed. If the 155 type is the trivial no-state-information type, just remember the seed. 156 Otherwise, initializes state[] based on the given "seed" via a linear 163 __srandom_r (seed, buf) 164 unsigned int seed; 181 /* We must make sure the seed is not 0. Take arbitrarily 1 in this case. */ 182 if (seed == 0) 183 seed = 1; 184 state[0] = seed; [all...] |
/haiku-fatelf/headers/posix/ |
H A D | stdlib.h | 99 extern void srand(unsigned int seed); 102 extern void srandom(unsigned int seed); 103 extern int rand_r(unsigned int *seed); 105 extern int srandom_r(unsigned int seed, struct random_data *data); 106 extern char *initstate(unsigned int seed, char *state, size_t size); 108 extern int initstate_r(unsigned int seed, void *stateBuffer, 118 extern void srand48(long int seed); 131 extern int srand48_r(long int seed, struct drand48_data *data);
|
/haiku-fatelf/src/libs/ncurses/test/ |
H A D | firework.c | 121 unsigned seed; local 142 seed = time((time_t *) 0); 143 srand(seed); 167 seed = time((time_t *) 0); 168 srand(seed);
|
/haiku-fatelf/src/bin/network/wget/src/ |
H A D | ftp-opie.c | 2164 /* Calculate the SKEY response, based on the sequence, seed 2191 skey_response (int sequence, const char *seed, const char *pass) argument 2203 gen_md5_update ((const unsigned char *)seed, strlen(seed), md5_ctx);
|
H A D | ftp-basic.c | 194 const char *seed = NULL; 201 seed = respline + l; 205 if (seed) 210 for (; c_isdigit (*seed); seed++) 211 skey_sequence = 10 * skey_sequence + *seed - '0'; 212 if (*seed == ' ') 213 ++seed; 221 pass = skey_response (skey_sequence, seed, pass); 193 const char *seed = NULL; local
|
/haiku-fatelf/src/libs/libtelnet/ |
H A D | pk.c | 140 * Generate a seed 143 getseed(char *seed, int seedsize) argument 149 seed[i] = random() & 0xff; 171 unsigned short seed[KEYSIZE/BASEBITS + 1]; local 174 getseed((char *)seed, sizeof(seed)); 176 r = seed[i] % BASE;
|
H A D | enc_des.c | 496 fb64_stream_iv(Block seed, struct stinfo *stp) argument 499 memmove((void *)stp->str_iv, (void *)seed, sizeof(Block)); 500 memmove((void *)stp->str_output, (void *)seed, sizeof(Block));
|
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/fs_shell/ |
H A D | tstfs.c | 121 int i, j, fd, seed, err, size, sum, name_size = 0; local 131 seed = strtoul(argv[1], NULL, 0); 133 seed = getpid() * time(NULL) | 1; 134 printf("random seed == 0x%x\n", seed); 136 srand(seed);
|
/haiku-fatelf/src/bin/gdb/libiberty/ |
H A D | random.c | 40 @deftypefnx Supplement void srandom (unsigned int @var{seed}) 41 @deftypefnx Supplement void* initstate (unsigned int @var{seed}, void *@var{arg_state}, unsigned long @var{n}) 46 number generator to some starting point determined by @var{seed} 87 interface. The initstate() routine is called with a seed, an array of 222 /* Initialize the random number generator based on the given seed. If the 223 type is the trivial no-state-information type, just remember the seed. 224 Otherwise, initializes state[] based on the given "seed" via a linear 260 initstate (seed, arg_state, n) 261 unsigned int seed; 310 srandom(seed); [all...] |
/haiku-fatelf/src/bin/gawk/ |
H A D | random.c | 78 * interface. The initstate() routine is called with a seed, an array of 191 /* The random sequences do not vary much with the seed */ 249 * The random sequences do not vary much with the seed, 276 * Initialize the random number generator based on the given seed. If the 277 * type is the trivial no-state-information type, just remember the seed. 278 * Otherwise, initializes state[] based on the given "seed" via a linear 307 * Many programs choose the seed value in a totally predictable manner. 308 * This often causes problems. We seed the generator using the much more 313 * a fixed seed. 388 initstate(seed, arg_stat [all...] |
/haiku-fatelf/src/kits/mail/ |
H A D | ServerConnection.cpp | 80 int64 seed = (int64)this + system_time(); local 81 RAND_seed(&seed, sizeof(seed));
|
/haiku-fatelf/src/bin/network/wget/lib/ |
H A D | stdlib.in.h | 277 int srandom_r (unsigned int seed, struct random_data *rand_state); 278 int initstate_r (unsigned int seed, char *buf, size_t buf_size,
|
/haiku-fatelf/src/add-ons/screen_savers/ifs/ |
H A D | IFS.cpp | 69 ya_rand_init(unsigned int seed) argument 72 if (seed == 0) 78 seed = (999*tp.tv_sec) + (1001*tp.tv_usec) + (1003 * getpid()); 81 a[0] += seed; 84 seed = a[i-1]*1001 + seed*999; 85 a[i] += seed;
|
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/random_file_actions/ |
H A D | random_file_actions.cpp | 157 " -s, --seed=<seed>\t\tThe base seed to use for the random numbers.\n" 708 {"seed", required_argument, 0, 's'}, 727 uint32 seed = 0; local 748 // seed 749 seed = strtoul(optarg, NULL, 0); 817 srand(seed); 819 verbose("%lu runs, %lu files (up to %s in size), %lu dirs, seed %lu\n", runs, 820 maxFileCount, size_to_string(sMaxFileSize).c_str(), maxDirCount, seed); [all...] |
/haiku-fatelf/src/add-ons/kernel/drivers/random/ |
H A D | driver.cpp | 78 #define NI 120 /* seed in increment */ 84 OCTET *seedptr; /* next seed pointer */ 157 * "stirs" in another seed value (no bullshit XOR here!) 161 chseed(ch_randgen *prandgen, const uint64 seed) argument 167 attach(prandgen->seedptr, (OCTET *) &seed, 0x213D42F6U, 0x6552DAF9U, 198 // random seed on startup by reading from /dev/urandom, perl
|