testsuite: ztress: Use XOSHIRO generator when ztress is used

Use XOSHIRO random number generator if target has entropy generator.
Some entropy generators may have limitations (e.g. only thread context)
which would conflict with ztress usage.

Added Kconfig.defconfig for testsuite.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
diff --git a/Kconfig.zephyr b/Kconfig.zephyr
index e7b6ade..b623b28 100644
--- a/Kconfig.zephyr
+++ b/Kconfig.zephyr
@@ -27,6 +27,8 @@
 osource "soc/$(ARCH)/*/Kconfig.defconfig"
 # This loads the toolchain defconfigs
 osource "$(TOOLCHAIN_KCONFIG_DIR)/Kconfig.defconfig"
+# This loads the testsuite defconfig
+source "subsys/testsuite/Kconfig.defconfig"
 
 # This should be early since the autogen Kconfig.dts symbols may get
 # used by modules
diff --git a/subsys/testsuite/Kconfig.defconfig b/subsys/testsuite/Kconfig.defconfig
new file mode 100644
index 0000000..429def0
--- /dev/null
+++ b/subsys/testsuite/Kconfig.defconfig
@@ -0,0 +1,10 @@
+# Copyright (c) 2022 Nordic Semiconductor ASA
+# SPDX-License-Identifier: Apache-2.0
+
+if TEST
+
+choice RNG_GENERATOR_CHOICE
+	default XOSHIRO_RANDOM_GENERATOR if ZTRESS && ENTROPY_HAS_DRIVER
+endchoice
+
+endif # TEST