Lines Matching refs:random
282 unsigned char random[RANDOM_SIZE]; /* random output */ member
306 result = memcmp(l->random, r->random, RANDOM_SIZE); in compare_drbg_fork_result()
338 unsigned char random[2 * RANDOM_SIZE]; in test_drbg_reseed_in_child() local
355 && TEST_true(read(fd[0], &random[0], sizeof(random)) in test_drbg_reseed_in_child()
356 == sizeof(random))) { in test_drbg_reseed_in_child()
361 memcpy(result[0].random, &random[0], RANDOM_SIZE); in test_drbg_reseed_in_child()
366 memcpy(result[1].random, &random[RANDOM_SIZE], RANDOM_SIZE); in test_drbg_reseed_in_child()
383 &random[0], &random[RANDOM_SIZE], in test_drbg_reseed_in_child()
385 && TEST_true(write(fd[1], random, sizeof(random)) in test_drbg_reseed_in_child()
386 == sizeof(random))) { in test_drbg_reseed_in_child()
408 unsigned char random[2 * RANDOM_SIZE]; in test_rand_reseed_on_fork() local
436 &random[0], &random[RANDOM_SIZE], in test_rand_reseed_on_fork()
446 memcpy(result[0].random, &random[0], RANDOM_SIZE); in test_rand_reseed_on_fork()
451 memcpy(result[1].random, &random[RANDOM_SIZE], RANDOM_SIZE); in test_rand_reseed_on_fork()
455 memcpy(psample, &result[i].random[0], RANDOM_SIZE); in test_rand_reseed_on_fork()
465 if (result[i].random[0] == result[i-1].random[0]) { in test_rand_reseed_on_fork()
503 char *rand_hex = OPENSSL_buf2hexstr(result[i].random, RANDOM_SIZE); in test_rand_reseed_on_fork()
522 unsigned char random[1]; in test_rand_fork_safety() local
536 if (!TEST_int_gt(RAND_bytes(random, 1), 0) || !TEST_int_gt(RAND_priv_bytes(random, 1), 0)) in test_rand_fork_safety()