Re: [PATCH v3] rust: Add support for feeding entropy to randomness pool
From: Matthew Maurer
Date: Tue Dec 30 2025 - 12:42:34 EST
On Tue, Dec 30, 2025 at 5:54 AM Kari Argillander
<kari.argillander@xxxxxxxxx> wrote:
>
> On Fri, 26 Dec 2025 at 21:15, Matthew Maurer <mmaurer@xxxxxxxxxx> wrote:
> > diff --git a/rust/kernel/rand.rs b/rust/kernel/rand.rs
> > new file mode 100644
> > index 0000000000000000000000000000000000000000..3e0aef2f53af122f510b34c4743a20452aaad9ad
> > --- /dev/null
> > +++ b/rust/kernel/rand.rs
> > @@ -0,0 +1,18 @@
> > +// SPDX-License-Identifier: GPL-2.0
> > +
> > +//! Randomness.
> > +//!
> > +//! C header: [`include/linux/random.h`](srctree/include/linux/random.h)
>
> So why rand and not random? If there is good reason to not use random.rs then
> can you add that reason to commit message.
I have no reason for rand over random and no strong preference. I'll
switch it to `random` in the next rev unless someone else chimes in.
>
> Argillander