mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-05 12:31:50 +01:00
Typo fixes and comment re-formatting.
This commit is contained in:
parent
cb8ebf792e
commit
16c90b2175
@ -61,8 +61,9 @@ get_entropy_count( int fd )
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************
|
/*
|
||||||
* Used to open the /dev/random devices (Linux, xBSD, Solaris (if it exists), ...)
|
* Used to open the /dev/random devices (Linux, xBSD, Solaris (if it
|
||||||
|
* exists), ...)
|
||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
open_device( const char *name, int minor )
|
open_device( const char *name, int minor )
|
||||||
@ -82,7 +83,7 @@ open_device( const char *name, int minor )
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/****************
|
/*
|
||||||
* Note: Using a level of 0 should never block and better add nothing
|
* Note: Using a level of 0 should never block and better add nothing
|
||||||
* to the pool. This is easy to accomplish with /dev/urandom.
|
* to the pool. This is easy to accomplish with /dev/urandom.
|
||||||
*/
|
*/
|
||||||
@ -103,8 +104,8 @@ rndlinux_gather_random( void (*add)(const void*, size_t, int), int requester,
|
|||||||
fd = fd_random;
|
fd = fd_random;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* this will also be used for elve 0 but by using /dev/urandom
|
/* This will also be used for level 0. By using /dev/urandom
|
||||||
* we can be sure that oit will never block. */
|
* we can be sure that it will never block. */
|
||||||
if( fd_urandom == -1 )
|
if( fd_urandom == -1 )
|
||||||
fd_urandom = open_device( NAME_OF_DEV_URANDOM, 9 );
|
fd_urandom = open_device( NAME_OF_DEV_URANDOM, 9 );
|
||||||
fd = fd_urandom;
|
fd = fd_urandom;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user