Re: [PATCH v5 7/9] cmd: rng: Use a statically allocated array for random bytes

2022-03-24 Thread Sughosh Ganu
hi Heinrich, On Sun, 13 Mar 2022 at 20:19, Sughosh Ganu wrote: > > Use a statically allocated buffer on stack instead of using malloc for > reading the random bytes. Using a local array is faster than > allocating heap memory on every initiation of the command. > > Signed-off-by: Sughosh Ganu >

Re: [PATCH v5 7/9] cmd: rng: Use a statically allocated array for random bytes

2022-03-14 Thread Simon Glass
Hi Sughosh, On Mon, 14 Mar 2022 at 05:27, Sughosh Ganu wrote: > > hi Simon, > > On Mon, 14 Mar 2022 at 03:53, Simon Glass wrote: > > > > Hi Sughosh, > > > > On Sun, 13 Mar 2022 at 08:49, Sughosh Ganu wrote: > > > > > > Use a statically allocated buffer on stack instead of using malloc for > >

Re: [PATCH v5 7/9] cmd: rng: Use a statically allocated array for random bytes

2022-03-14 Thread Sughosh Ganu
hi Simon, On Mon, 14 Mar 2022 at 03:53, Simon Glass wrote: > > Hi Sughosh, > > On Sun, 13 Mar 2022 at 08:49, Sughosh Ganu wrote: > > > > Use a statically allocated buffer on stack instead of using malloc for > > reading the random bytes. Using a local array is faster than > > allocating heap

Re: [PATCH v5 7/9] cmd: rng: Use a statically allocated array for random bytes

2022-03-13 Thread Simon Glass
Hi Sughosh, On Sun, 13 Mar 2022 at 08:49, Sughosh Ganu wrote: > > Use a statically allocated buffer on stack instead of using malloc for > reading the random bytes. Using a local array is faster than > allocating heap memory on every initiation of the command. > > Signed-off-by: Sughosh Ganu >

[PATCH v5 7/9] cmd: rng: Use a statically allocated array for random bytes

2022-03-13 Thread Sughosh Ganu
Use a statically allocated buffer on stack instead of using malloc for reading the random bytes. Using a local array is faster than allocating heap memory on every initiation of the command. Signed-off-by: Sughosh Ganu --- Changes since V4: * New patch based on review comments from Simon to