search for: ourpid

Displaying 1 result from an estimated 1 matches for "ourpid".

2011 Jan 28
2
klibc 1.5.21-1 and mksh
...(unsigned short)(h >> 16); ++ ++ /* split half a hash of new additional_data into the new seed */ ++ h = 0x100; ++ OAAT_Update(h, &additional_data, sizeof(additional_data)); ++ OAAT_Final(h); ++ arc4_state.seed[0] = (unsigned short)(h & 0xFFFF); ++} ++ ++static void ++arc4_stir(pid_t ourpid) ++{ ++ /* define a "stir buffer" */ ++#define UUID_LEN 36 ++ struct { ++ union { ++ ssize_t numb; ++ pid_t newpid; ++ } u; ++ int fd; ++ int count; ++ char uuid[UUID_LEN]; ++ } s; ++ ++ if ((s.fd = open("/proc/sys/kernel/random/uuid", O_RDONLY)) != -1) { ++ s.count =...