Searched refs:seed (Results 1 – 3 of 3) sorted by relevance
121 double uniform_deviate(int seed) in uniform_deviate() argument123 return seed * (1.0 / (RAND_MAX + 1.0)); in uniform_deviate()
347 unsigned int seed = time(NULL); in main() local353 seed = strtoul(optarg, NULL, 0); in main()358 printf("random seed %u\n", seed); in main()359 srand(seed); in main()
282 unsigned int seed; in locking_thread() local286 seed = (unsigned int) time(NULL) - bounces; in locking_thread()288 seed += cpu; in locking_thread()291 if (initstate_r(seed, randstate, sizeof(randstate), &rand)) in locking_thread()