diff options
Diffstat (limited to 'libc/test/src/stdlib/rand_test.cpp')
| -rw-r--r-- | libc/test/src/stdlib/rand_test.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libc/test/src/stdlib/rand_test.cpp b/libc/test/src/stdlib/rand_test.cpp index 7934dc16aa46..6f25708e5390 100644 --- a/libc/test/src/stdlib/rand_test.cpp +++ b/libc/test/src/stdlib/rand_test.cpp @@ -23,15 +23,12 @@ TEST(LlvmLibcRandTest, UnsetSeed) { vals[i] = val; } - // FIXME: The GPU implementation cannot initialize the seed correctly. -#ifndef LIBC_TARGET_ARCH_IS_GPU // The C standard specifies that if 'srand' is never called it should behave // as if 'srand' was called with a value of 1. If we seed the value with 1 we // should get the same sequence as the unseeded version. LIBC_NAMESPACE::srand(1); for (size_t i = 0; i < 1000; ++i) ASSERT_EQ(LIBC_NAMESPACE::rand(), vals[i]); -#endif } TEST(LlvmLibcRandTest, SetSeed) { |
