mirror of
https://github.com/clearml/dropbear
synced 2025-04-21 22:54:48 +00:00
Include /proc/vmstat as another random source
This commit is contained in:
parent
58c7d4474c
commit
80e77b5e6d
1
random.c
1
random.c
@ -211,6 +211,7 @@ void seedrandom() {
|
|||||||
process_file(&hs, "/proc/net/tcp", 0, 0);
|
process_file(&hs, "/proc/net/tcp", 0, 0);
|
||||||
/* Also includes interface lo */
|
/* Also includes interface lo */
|
||||||
process_file(&hs, "/proc/net/rt_cache", 0, 0);
|
process_file(&hs, "/proc/net/rt_cache", 0, 0);
|
||||||
|
process_file(&hs, "/proc/vmstat", 0, 0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
pid = getpid();
|
pid = getpid();
|
||||||
|
Loading…
Reference in New Issue
Block a user