getrandom: fix comment contradicting code

Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
This commit is contained in:
Juha Niskanen 2022-06-15 14:59:20 +03:00 committed by Alan Carvalho de Assis
parent 0aa14f91da
commit 449cf4d076
2 changed files with 8 additions and 12 deletions

View File

@ -50,12 +50,10 @@
* Name: getrandom
*
* Description:
* Fill a buffer of arbitrary length with randomness. This is the
* preferred interface for getting random numbers. The traditional
* /dev/random approach is susceptible for things like the attacker
* exhausting file descriptors on purpose.
*
* Note that this function cannot fail, other than by asserting.
* Fill a buffer of arbitrary length with randomness. This uses
* either /dev/random (if GRND_RANDOM flag) or /dev/urandom device and
* is therefore susceptible for things like the attacker exhausting file
* descriptors on purpose.
*
* Input Parameters:
* bytes - Buffer for returned random bytes

View File

@ -36,12 +36,10 @@
* Name: getrandom
*
* Description:
* Fill a buffer of arbitrary length with randomness. This is the
* preferred interface for getting random numbers. The traditional
* /dev/random approach is susceptible for things like the attacker
* exhausting file descriptors on purpose.
*
* Note that this function cannot fail, other than by asserting.
* Fill a buffer of arbitrary length with randomness. This uses
* either /dev/random (if GRND_RANDOM flag) or /dev/urandom device and
* is therefore susceptible for things like the attacker exhausting file
* descriptors on purpose.
*
* Input Parameters:
* bytes - Buffer for returned random bytes