From e43340649f45c865c6ed4d8aad8eb3944aea8057 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 26 Mar 2016 16:00:37 +0100 Subject: strfry: fix random int range boundary, document that srand should have been called, support huge strings, and use uniform random MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- include/string.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/string.h b/include/string.h index f04e4a9..99608d9 100644 --- a/include/string.h +++ b/include/string.h @@ -1387,6 +1387,9 @@ char* __gnu_basename(const char*) /** * Shuffles all bytes in a string. * + * You should have called `srand` before + * calling this function. + * * This is a GNU joke extension. * * @param anagram An anagram of the output, will be modified. -- cgit v1.2.3-70-g09d2