aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-03-26 16:00:37 +0100
committerMattias Andrée <maandree@kth.se>2016-03-26 16:00:44 +0100
commite43340649f45c865c6ed4d8aad8eb3944aea8057 (patch)
tree5ea99f9c339e3a55e8911629926145e2c618b7a0 /include
parentm (diff)
downloadslibc-e43340649f45c865c6ed4d8aad8eb3944aea8057.tar.gz
slibc-e43340649f45c865c6ed4d8aad8eb3944aea8057.tar.bz2
slibc-e43340649f45c865c6ed4d8aad8eb3944aea8057.tar.xz
strfry: fix random int range boundary, document that srand should have been called, support huge strings, and use uniform random
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--include/string.h3
1 files changed, 3 insertions, 0 deletions
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.