From 803e1a3d3890621bf588544bc389d973ea9e6cd4 Mon Sep 17 00:00:00 2001 From: Jean-Jacques Hiblot Date: Tue, 2 Jul 2019 14:23:26 +0200 Subject: cmd: mem: Add a command to fill the memory with random data This command fills the memory with data produced by rand(). Signed-off-by: Jean-Jacques Hiblot --- cmd/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cmd/Kconfig') diff --git a/cmd/Kconfig b/cmd/Kconfig index ec746fe825..175c6ad9e3 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -571,6 +571,13 @@ config CMD_MEMORY base - print or set address offset loop - initialize loop on address range +config CMD_RANDOM + bool "random" + default y + depends on CMD_MEMORY && (LIB_RAND || LIB_HW_RAND) + help + random - fill memory with random data + config CMD_MEMTEST bool "memtest" help -- cgit v1.2.3