search for: arc4_stat

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

Did you mean: arc4_state
2011 Jan 28
2
klibc 1.5.21-1 and mksh
...t;errno.h> ++#include <fcntl.h> ++#include <stdint.h> ++#include <stdlib.h> ++#include <unistd.h> ++ ++static struct arc4random_state { ++ unsigned short seed[3]; /* for jrand48 */ ++ unsigned short cnt; /* invocation count */ ++ pid_t proc; /* PID of last seed */ ++} arc4_state = { { 0, 0, 0 }, 0, 0 }; ++ ++static void arc4_stir(pid_t); ++ ++/* Jenkins one-at-a-time hash */ ++#define OAAT_Update(h, buf, siz) do { \ ++ register const uint8_t *OAATcp; \ ++ register int OAATn = (siz); \ ++ \ ++ OAATcp = (const void *)(buf); \ ++ while (OAATn--) { \ ++ (h) += *OA...