Home
last modified time | relevance | path

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

/external/e2fsprogs/lib/uuid/
Dgen_uuid.c114 THREAD_LOCAL unsigned short jrand_seed[3]; variable
158 jrand_seed[0] = getpid() ^ (tv.tv_sec & 0xFFFF); in get_random_fd()
159 jrand_seed[1] = getppid() ^ (tv.tv_usec & 0xFFFF); in get_random_fd()
160 jrand_seed[2] = (tv.tv_sec ^ tv.tv_usec) >> 16; in get_random_fd()
205 memcpy(tmp_seed, jrand_seed, sizeof(tmp_seed)); in get_random_bytes()
206 jrand_seed[2] = jrand_seed[2] ^ syscall(__NR_gettid); in get_random_bytes()
209 memcpy(jrand_seed, tmp_seed, in get_random_bytes()
210 sizeof(jrand_seed) - sizeof(unsigned short)); in get_random_bytes()