Logo
Explore Help
Sign In
officereso/slstatus
1
0
Fork 0
You've already forked slstatus
Code Issues Pull Requests Releases Wiki Activity
slstatus/components/Linux/entropy.c

14 lines
265 B
C
Raw Normal View History

Added LICENSE statements to all source files
2017-09-17 17:45:03 +02:00
/* See LICENSE file for copyright and license details. */
Split into multiple files 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
2017-09-17 16:18:17 +02:00
#include <stdio.h>
entropy: OS split
2018-04-30 15:14:34 +02:00
#include "../../util.h"
Split into multiple files 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
2017-09-17 16:18:17 +02:00
const char *
entropy(void)
{
int num;
return (pscanf("/proc/sys/kernel/random/entropy_avail", "%d", &num) == 1) ?
bprintf("%d", num) : NULL;
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.6 Page: 11ms Template: 0ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API