]> git.ipfire.org Git - thirdparty/shadow.git/commit
Fix types of the csrand_interval() API
authorAlejandro Colomar <alx@kernel.org>
Fri, 30 Dec 2022 17:50:21 +0000 (18:50 +0100)
committerSerge Hallyn <serge@hallyn.com>
Sat, 28 Jan 2023 03:48:37 +0000 (21:48 -0600)
commit6d2337d9e80eb38ab92708c7fc44b3bdeb016bad
tree4c868dda08a3da6c300d89e6008c11bd0407131b
parent8f441c9f7a8d1c8019e5b1d843821a456022b525
Fix types of the csrand_interval() API

We were always casting the result to u_long.  Better just use that type
in the function.  Since we're returning u_long, it makes sense to also
specify the input as u_long.  In fact, that'll help for doing bitwise
operations inside this function.

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