lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2b3bc31e-c308-b04c-1759-26bcf8dba6d3@infradead.org>
Date:   Thu, 17 Nov 2022 08:41:45 -0800
From:   Randy Dunlap <rdunlap@...radead.org>
To:     "Jason A. Donenfeld" <Jason@...c4.com>,
        linux-kernel@...r.kernel.org, tytso@....edu, kees@...nel.org,
        linux@...linux.org.uk, ydroneaud@...eya.com,
        gregkh@...uxfoundation.org
Subject: Re: [PATCH v2] random: add helpers for random numbers with given
 floor or range



On 11/17/22 08:35, Jason A. Donenfeld wrote:
> diff --git a/drivers/char/random.c b/drivers/char/random.c
> index 6f323344d0b9..140dbd557dbc 100644
> --- a/drivers/char/random.c
> +++ b/drivers/char/random.c
> @@ -161,6 +161,8 @@ EXPORT_SYMBOL(wait_for_random_bytes);
>   *	u16 get_random_u16()
>   *	u32 get_random_u32()
>   *	u32 get_random_u32_below(u32 ceil)
> + *	u32 get_random_u32_above(u32 floor)
> + *	u32 get_random_u32_inclusive(u32 ceil, u32 floor)

                                         floor,    ceil)

>   *	u64 get_random_u64()
>   *	unsigned long get_random_long()

-- 
~Randy

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ