From 96ae01ef1b5bc59ced194f9cf7854cd709432455 Mon Sep 17 00:00:00 2001 From: Thom Wiggers Date: Tue, 15 Jan 2019 16:10:27 +0100 Subject: [PATCH] Clarify that randombytes.c is not at all random --- common/{randombytes.c => notrandombytes.c} | 9 +++++++++ 1 file changed, 9 insertions(+) rename common/{randombytes.c => notrandombytes.c} (81%) diff --git a/common/randombytes.c b/common/notrandombytes.c similarity index 81% rename from common/randombytes.c rename to common/notrandombytes.c index 43e1950b..cda9e6ea 100644 --- a/common/randombytes.c +++ b/common/notrandombytes.c @@ -1,3 +1,12 @@ +/** + * WARNING + * + * This file generates a PREDICTABLE and NOT AT ALL RANDOM sequence of bytes. + * + * Its purpose is to support our testing suite and it MUST NOT be used in any + * scenario where you are expecting actual cryptography to happen. + */ + #include #include "randombytes.h"