diff options
| author | Koakuma <koachan@protonmail.com> | 2024-07-08 19:19:54 +0700 |
|---|---|---|
| committer | Koakuma <koachan@protonmail.com> | 2024-07-08 19:19:54 +0700 |
| commit | 5c4fdc2fd5898ebd9e89999a4f4b8aa289ca637f (patch) | |
| tree | f3b92a07f3dfc6e70f36d1000605f36a3c15af46 /libc/src/stdlib/srand.cpp | |
| parent | dbda8e2f2cd8764e0badd983915d62a2c3377f4d (diff) | |
| parent | e9b8cd0c806db00f0981fb36717077c941426302 (diff) | |
[𝘀𝗽𝗿] changes introduced through rebaseusers/koachan/spr/main.sparcias-enable-parseforallfeatures-in-matchoperandparserimpl
Created using spr 1.3.5
[skip ci]
Diffstat (limited to 'libc/src/stdlib/srand.cpp')
| -rw-r--r-- | libc/src/stdlib/srand.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libc/src/stdlib/srand.cpp b/libc/src/stdlib/srand.cpp index 008c7a9e565e..21166c7a6754 100644 --- a/libc/src/stdlib/srand.cpp +++ b/libc/src/stdlib/srand.cpp @@ -12,6 +12,8 @@ namespace LIBC_NAMESPACE { -LLVM_LIBC_FUNCTION(void, srand, (unsigned int seed)) { rand_next = seed; } +LLVM_LIBC_FUNCTION(void, srand, (unsigned int seed)) { + rand_next.store(seed, cpp::MemoryOrder::RELAXED); +} } // namespace LIBC_NAMESPACE |
