![Aaron Marcher](/assets/img/avatar_default.png)
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
12 lines
201 B
C
12 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;
|
|
}
|