Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matt Johnston
dropbear
Commits
6ba2b2b3
Commit
6ba2b2b3
authored
Jun 30, 2012
by
Matt Johnston
Browse files
Add a few more files in /proc for Linux
parent
d5ccc32b
Changes
1
Hide whitespace changes
Inline
Side-by-side
random.c
View file @
6ba2b2b3
...
...
@@ -205,10 +205,18 @@ void seedrandom() {
/* A few other sources to fall back on. Add more here for other platforms */
#ifdef __linux__
/* Seems to be a reasonable source of entropy from timers */
/* Seems to be a reasonable source of entropy from timers. Possibly hard
* for even local attackers to reproduce */
process_file
(
&
hs
,
"/proc/timer_list"
,
0
,
0
);
/* Might help on systems with wireless */
process_file
(
&
hs
,
"/proc/interrupts"
,
0
,
0
);
/* Mostly network visible but useful in some situations */
process_file
(
&
hs
,
"/proc/net/netstat"
,
0
,
0
);
process_file
(
&
hs
,
"/proc/net/dev"
,
0
,
0
);
process_file
(
&
hs
,
"/proc/net/tcp"
,
0
,
0
);
/* Also includes interface lo */
process_file
(
&
hs
,
"/proc/net/rt_cache"
,
0
,
0
);
#endif
pid
=
getpid
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment