From: Randy Dunlap <rdunlap@infradead.org>
To: "Jason A. Donenfeld" <Jason@zx2c4.com>,
linux-kernel@vger.kernel.org, tytso@mit.edu, kees@kernel.org,
linux@armlinux.org.uk, ydroneaud@opteya.com,
gregkh@linuxfoundation.org
Subject: Re: [PATCH v2] random: add helpers for random numbers with given floor or range
Date: Thu, 17 Nov 2022 08:41:45 -0800 [thread overview]
Message-ID: <2b3bc31e-c308-b04c-1759-26bcf8dba6d3@infradead.org> (raw)
In-Reply-To: <20221117163511.2186302-1-Jason@zx2c4.com>
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
next prev parent reply other threads:[~2022-11-17 16:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-17 16:35 Jason A. Donenfeld
2022-11-17 16:41 ` Randy Dunlap [this message]
2022-11-17 19:26 ` [PATCH v3] " Jason A. Donenfeld
2022-11-17 21:48 ` Kees Cook
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2b3bc31e-c308-b04c-1759-26bcf8dba6d3@infradead.org \
--to=rdunlap@infradead.org \
--cc=Jason@zx2c4.com \
--cc=gregkh@linuxfoundation.org \
--cc=kees@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=tytso@mit.edu \
--cc=ydroneaud@opteya.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®