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 <jjhiblot@ti.com>
diff --git a/cmd/Kconfig b/cmd/Kconfig
index ec746fe..175c6ad 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -571,6 +571,13 @@
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