Skip to content

Commit

Permalink
random: fix typos in get_random_bytes() comment
Browse files Browse the repository at this point in the history
Remove extra whitespace and add a missing word to a sentence describing
get_random_bytes().

Signed-off-by: William Zijl <postmaster@gusted.xyz>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
  • Loading branch information
William Zijl authored and Jason A. Donenfeld committed Oct 1, 2022
1 parent 1227334 commit d687772
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions drivers/char/random.c
Original file line number Diff line number Diff line change
Expand Up @@ -382,11 +382,11 @@ static void _get_random_bytes(void *buf, size_t len)
}

/*
* This function is the exported kernel interface. It returns some
* number of good random numbers, suitable for key generation, seeding
* TCP sequence numbers, etc. In order to ensure that the randomness
* by this function is okay, the function wait_for_random_bytes()
* should be called and return 0 at least once at any point prior.
* This function is the exported kernel interface. It returns some number of
* good random numbers, suitable for key generation, seeding TCP sequence
* numbers, etc. In order to ensure that the randomness returned by this
* function is okay, the function wait_for_random_bytes() should be called and
* return 0 at least once at any point prior.
*/
void get_random_bytes(void *buf, size_t len)
{
Expand Down

0 comments on commit d687772

Please sign in to comment.