Home
last modified time | relevance | path

Searched refs:NXT_RANDOM_KEY_SIZE (Results 1 – 1 of 1) sorted by relevance

/unit/src/
H A Dnxt_random.c18 #define NXT_RANDOM_KEY_SIZE 128 macro
58 u_char bytes[NXT_RANDOM_KEY_SIZE]; in nxt_random_stir()
63 n = getrandom(&key, NXT_RANDOM_KEY_SIZE, 0); in nxt_random_stir()
69 n = syscall(SYS_getrandom, &key, NXT_RANDOM_KEY_SIZE, 0); in nxt_random_stir()
75 if (getentropy(&key, NXT_RANDOM_KEY_SIZE) == 0) { in nxt_random_stir()
76 n = NXT_RANDOM_KEY_SIZE; in nxt_random_stir()
85 if (n != NXT_RANDOM_KEY_SIZE) { in nxt_random_stir()
89 n = read(fd, &key, NXT_RANDOM_KEY_SIZE); in nxt_random_stir()
94 if (n != NXT_RANDOM_KEY_SIZE) { in nxt_random_stir()
105 nxt_random_add(r, key.bytes, NXT_RANDOM_KEY_SIZE); in nxt_random_stir()