mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 06:39:01 +08:00
getrandom: fix comment contradicting code
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
0aa14f91da
commit
449cf4d076
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user