-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Keep /dev/random open for seeding #6432
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,8 @@ | |
|
|
||
| =head1 NAME | ||
|
|
||
| RAND_add, RAND_poll, RAND_seed, RAND_status, RAND_event, RAND_screen | ||
| RAND_add, RAND_poll, RAND_seed, RAND_status, RAND_event, RAND_screen, | ||
| RAND_keep_random_devices_open | ||
| - add randomness to the PRNG or get its status | ||
|
|
||
| =head1 SYNOPSIS | ||
|
|
@@ -15,6 +16,8 @@ RAND_add, RAND_poll, RAND_seed, RAND_status, RAND_event, RAND_screen | |
| void RAND_add(const void *buf, int num, double randomness); | ||
| void RAND_seed(const void *buf, int num); | ||
|
|
||
| void RAND_keep_random_devices_open(int keep); | ||
|
|
||
| Deprecated: | ||
|
|
||
| #if OPENSSL_API_COMPAT < 0x10100000L | ||
|
|
@@ -54,6 +57,15 @@ should consider using L<RAND_load_file(3)> instead. | |
|
|
||
| RAND_seed() is equivalent to RAND_add() with B<randomness> set to B<num>. | ||
|
|
||
| RAND_keep_random_devices_open() is used to control file descriptor | ||
| usage by the random seed sources. Some seed sources maintain open file | ||
| descriptors by default, which allows such sources to operate in a | ||
| chroot(2) jail without the associated device nodes being available. When | ||
| the B<keep> argument is zero, this call disables the retention of file | ||
| descriptors. Conversely, a non-zero argument enables the retention of | ||
| file descriptors. This function is usually called during initialization | ||
| and it takes effect immediately. | ||
|
||
|
|
||
| RAND_event() and RAND_screen() are equivalent to RAND_poll() and exist | ||
| for compatibility reasons only. See HISTORY section below. | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
descriptors?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's "file descriptor use", but maybe @paulidale should break the line after "use", otherwise more readers will stumble over it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or "file descriptor usage"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh..right. My mistake. Actually the line break is probably not that big a deal because it won't necessarily be there when this gets rendered as a man page.