# Re: \[PATCH 0/3\] random: add random.rng\_seed to bootconfig entry

- From: Mark Salyzyn \<hidden\>
- Date: 2020-02-14 18:31:22 
- List: linux-doc
- Page: https://ratatoskr.run/linux-doc/2020/02/5863499
- Thread: https://ratatoskr.run/linux-doc/2020/02/5861079/t.md

```text
On 2/14/20 10:14 AM, Rob Herring wrote:
> On Fri, Feb 14, 2020 at 11:00 AM Mark Salyzyn [ref] wrote:
>> On 2/14/20 5:49 AM, Rob Herring wrote:
>>> On Fri, Feb 14, 2020 at 12:10 AM Masami Hiramatsu [ref] wrote:
>>>> Hi,
>>>>
>>>> The following series is bootconfig based implementation of
>>>> the rng_seed option patch originally from Mark Salyzyn.
>>>> Note that I removed unrelated command line fixes from this
>>>> series.
>>> Why do we need this? There's already multiple other ways to pass
>>> random seed and this doesn't pass the "too complex for the command
>>> line" argument you had for needing bootconfig.
>>>
>>> Rob
>> Android is the use case I can vouch for. But also KVM.
. . .
> I'm familiar with Cuttlefish somewhat. Guess who got virtio-gpu
> working on Android[1]. :) I assume DT doesn't work for you because you
> need x86 builds, but doesn't QEMU use UEFI in that case which also has
> a mechanism for passing entropy.
IDK, will have to ask the Cuttlefish Team why UEFI not being used, will get back to you.
>
> To clarify my question: Why do we need random seed in bootconfig
> rather than just the kernel command line? I'm not understanding why
> things changed from your original patch.

Command line was identified as the simplest for them to implement generically for the x86 and arm64 Cuttlefish instances and hence my original patch series.

However, it also is limited in the size of the entropy string that can be provided, so we flipped a coin and decided to accept the bootconfig mechanism as a viable alternative; that BTW appeared to be simpler to implement (mainly because rubbing out the entropy command line argument is not easy).

-- Mark

```
