6820631175
For multiple reasons the program is now split: - Make future porting to OpenBSD easier - Assign header includes to individiual functions - Make future program extensions easier - Recompile only changed parts
13 lines
201 B
C
13 lines
201 B
C
#include <stdio.h>
|
|
|
|
#include "util.h"
|
|
|
|
const char *
|
|
entropy(void)
|
|
{
|
|
int num;
|
|
|
|
return (pscanf("/proc/sys/kernel/random/entropy_avail", "%d", &num) == 1) ?
|
|
bprintf("%d", num) : NULL;
|
|
}
|