getrandom: fix comment contradicting code
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
This commit is contained in:
parent
0aa14f91da
commit
449cf4d076
@ -50,12 +50,10 @@
|
|||||||
* Name: getrandom
|
* Name: getrandom
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Fill a buffer of arbitrary length with randomness. This is the
|
* Fill a buffer of arbitrary length with randomness. This uses
|
||||||
* preferred interface for getting random numbers. The traditional
|
* either /dev/random (if GRND_RANDOM flag) or /dev/urandom device and
|
||||||
* /dev/random approach is susceptible for things like the attacker
|
* is therefore susceptible for things like the attacker exhausting file
|
||||||
* exhausting file descriptors on purpose.
|
* descriptors on purpose.
|
||||||
*
|
|
||||||
* Note that this function cannot fail, other than by asserting.
|
|
||||||
*
|
*
|
||||||
* Input Parameters:
|
* Input Parameters:
|
||||||
* bytes - Buffer for returned random bytes
|
* bytes - Buffer for returned random bytes
|
||||||
|
@ -36,12 +36,10 @@
|
|||||||
* Name: getrandom
|
* Name: getrandom
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Fill a buffer of arbitrary length with randomness. This is the
|
* Fill a buffer of arbitrary length with randomness. This uses
|
||||||
* preferred interface for getting random numbers. The traditional
|
* either /dev/random (if GRND_RANDOM flag) or /dev/urandom device and
|
||||||
* /dev/random approach is susceptible for things like the attacker
|
* is therefore susceptible for things like the attacker exhausting file
|
||||||
* exhausting file descriptors on purpose.
|
* descriptors on purpose.
|
||||||
*
|
|
||||||
* Note that this function cannot fail, other than by asserting.
|
|
||||||
*
|
*
|
||||||
* Input Parameters:
|
* Input Parameters:
|
||||||
* bytes - Buffer for returned random bytes
|
* bytes - Buffer for returned random bytes
|
||||||
|
Loading…
Reference in New Issue
Block a user