]> git.ipfire.org Git - thirdparty/shadow.git/commit
Use naming consistent with other common functions
authorAlejandro Colomar <alx@kernel.org>
Fri, 30 Dec 2022 18:42:17 +0000 (19:42 +0100)
committerSerge Hallyn <serge@hallyn.com>
Sat, 28 Jan 2023 03:48:37 +0000 (21:48 -0600)
commit986ef4e69c6dbe6e9c56b9322ce1ee976763d2eb
treeaa39bba7b79230028398ae155296ec2b38763a9e
parent6d2337d9e80eb38ab92708c7fc44b3bdeb016bad
Use naming consistent with other common functions

arc4random(3) returns a number.
arc4random_buf(3) fills a buffer.
arc4random_uniform(3) returns a number less than a bound.

and I'd add a hypothetical one which we use:

*_interval() should return a number within the interval [min, max].

In reality, the function being called csrand() in this patch is not
really cryptographically secure, since it had a bias, but a subsequent
patch will fix that.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
libmisc/salt.c