Searched refs:seed (Results 1 - 5 of 5) sorted by relevance

/ast/src/lib/libast/uwin/
H A Drand48.c150 extern unsigned short *seed48(unsigned short seed[3]) argument
160 X[0] = seed[2];
161 X[1] = seed[1];
162 X[2] = seed[0];
H A Drandom.c69 interface. The initstate() routine is called with a seed, an array of
203 /* Initialize the random number generator based on the given seed. If the
204 type is the trivial no-state-information type, just remember the seed.
205 Otherwise, initializes state[] based on the given "seed" via a linear
238 extern char* initstate(unsigned int seed, char* arg_state, size_t n)
285 srandom(seed);
236 initstate(unsigned int seed, char* arg_state, size_t n) argument
/ast/src/lib/libast/path/
H A Dpathtemp.c66 * /seed dir specifies pseudo-random generator seed
95 int seed; member in struct:__anon300
150 else if (streq(pfx, "seed"))
152 tmp.key = (tmp.seed = (tmp.rng = dir ? (uint32_t)strtoul(dir, NiL, 0) : (uint32_t)1) != 0)? (uint32_t)0x63c63cd9L : 0;
181 if (tmp.seed)
291 if (!tmp.rng || !tmp.seed && (attempt || tmp.pid != getpid()))
318 if (!tmp.seed)
/ast/src/cmd/sort/
H A Dgen.c43 #define RAND() (state.seed=(state.seed*0x63c63cd9L+1)&0xffffffff)
58 unsigned long seed; member in struct:__anon218
71 c = data[(state.seed >> state.part) % m];
86 state.range['d'].min = sizeof(state.seed) * CHAR_BIT;
89 state.seed = 0x12345678;
/ast/src/cmd/dsslib/num_t/
H A Dnum_t.c356 int seed; member in struct:__anon95
384 hp->seed = 0;
398 if (!hp->seed)
400 hp->seed = 1;
439 if (!hp->seed)
441 hp->seed = 1;
1141 { "rand_t", "Non-repeatable pseudo-random string hash.", CXH, (Cxtype_t*)"string", hash_init, hash_external, hash_internal, 0, 0, 0, 0, { "The format details string is an optional initial pseudo-random seed number. The default is synthesized using current process/system characteristics.", 0, CX_STRING } },

Completed in 815 milliseconds