From 4bc0b2d2967cad0b6997623115049f169d2da0b0 Mon Sep 17 00:00:00 2001
From: maksim-ka <42pema1bif@hft-stuttgart.de>
Date: Fri, 31 Jan 2020 15:17:30 +0100
Subject: [PATCH 2/2] add flag to help message

---
 cmake/rand.cmake        | 1 +
 include/relic_conf.h.in | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/cmake/rand.cmake b/cmake/rand.cmake
index c42f8412..7d8d90f9 100644
--- a/cmake/rand.cmake
+++ b/cmake/rand.cmake
@@ -7,6 +7,7 @@ message("   RAND=CALL      Override the generator with a callback.\n")
 
 message(STATUS "Available random number generator seeders (default = UDEV):\n")
 
+message("   SEED=RIOTRND   Use RIOT's random module for seeding. (recommended on RIOT)")
 message("   SEED=WCGR      Use Windows' CryptGenRandom. (recommended)")
 message("   SEED=DEV       Use blocking /dev/random. (recommended)")
 message("   SEED=UDEV      Use non-blocking /dev/urandom. (recommended)")
diff --git a/include/relic_conf.h.in b/include/relic_conf.h.in
index 66201795..6f064c32 100644
--- a/include/relic_conf.h.in
+++ b/include/relic_conf.h.in
@@ -685,6 +685,8 @@
 #define LIBC     5
 /** Null seed. */
 #define	ZERO     6
+/** Use RIOT's random module for seeding */
+#define RIOTRND     7
 /** Chosen random generator seeder. */
 #define SEED     @SEED@
 
-- 
2.24.1