aboutsummaryrefslogtreecommitdiff
path: root/libc/src
diff options
context:
space:
mode:
authorJoseph Huber <huberjn@outlook.com>2024-06-26 11:45:47 -0500
committerGitHub <noreply@github.com>2024-06-26 11:45:47 -0500
commite1015ae55d9ac729b0b0a41f4207241f8d4b2789 (patch)
tree3cf3709fead9ea12684741b839bf6f7524d28fa0 /libc/src
parent637b7f805a2f22978fac75e75c52bd6d7c3e8161 (diff)
downloadllvm-e1015ae55d9ac729b0b0a41f4207241f8d4b2789.zip
llvm-e1015ae55d9ac729b0b0a41f4207241f8d4b2789.tar.gz
llvm-e1015ae55d9ac729b0b0a41f4207241f8d4b2789.tar.bz2
[libc][docs] List `rand` and `srand` as supported on the GPU (#96757)
Summary: I initially didn't report these as supported because they didn't provide expected behavior and were very wasteful. The recent patch moved them to a lock-free atomic implementation so they can now actually be used.
Diffstat (limited to 'libc/src')
-rw-r--r--libc/src/stdlib/rand_util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/src/stdlib/rand_util.cpp b/libc/src/stdlib/rand_util.cpp
index 81ee358..ff3478d 100644
--- a/libc/src/stdlib/rand_util.cpp
+++ b/libc/src/stdlib/rand_util.cpp
@@ -12,7 +12,7 @@
namespace LIBC_NAMESPACE {
-// C standard 7.10p2: If 'rand' is called before 'srand' it is to
+// C standard 7.10p2: If 'rand' is called before 'srand' it is to
// proceed as if the 'srand' function was called with a value of '1'.
cpp::Atomic<unsigned long> rand_next = 1;