commit | 407ec09a14ee417e26a0ff03940d3d54abe426e3 | [log] [tgz] |
---|---|---|
author | Sughosh Ganu <sughosh.ganu@linaro.org> | Fri Jul 22 21:32:07 2022 +0530 |
committer | Ilias Apalodimas <ilias.apalodimas@linaro.org> | Tue Aug 02 23:50:02 2022 +0300 |
tree | 0bee8c92ee2c645f415dc5cf5f8e5126ad341918 | |
parent | b746dee65480488facfe9f29e8830373d04d99e6 [diff] |
cmd: rng: Use a statically allocated array for random bytes 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 <sughosh.ganu@linaro.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>