summaryrefslogtreecommitdiffstats
path: root/JavaScriptCore/wtf/RandomNumberSeed.h
diff options
context:
space:
mode:
Diffstat (limited to 'JavaScriptCore/wtf/RandomNumberSeed.h')
-rw-r--r--JavaScriptCore/wtf/RandomNumberSeed.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/JavaScriptCore/wtf/RandomNumberSeed.h b/JavaScriptCore/wtf/RandomNumberSeed.h
index ae414c0..b53b506 100644
--- a/JavaScriptCore/wtf/RandomNumberSeed.h
+++ b/JavaScriptCore/wtf/RandomNumberSeed.h
@@ -64,6 +64,8 @@ inline void initializeRandomNumberGenerator()
init_by_array(initializationBuffer, 4);
#elif COMPILER(MSVC) && defined(_CRT_RAND_S)
// On Windows we use rand_s which initialises itself
+#elif PLATFORM(BREWMP)
+ // On Brew MP we use AEECLSID_RANDOM which initialises itself
#elif OS(UNIX)
// srandomdev is not guaranteed to exist on linux so we use this poor seed, this should be improved
timeval time;
@@ -74,15 +76,6 @@ inline void initializeRandomNumberGenerator()
#endif
}
-inline void initializeWeakRandomNumberGenerator()
-{
-#if COMPILER(MSVC) && defined(_CRT_RAND_S)
- // We need to initialise windows rand() explicitly for Math.random
- unsigned seed = 0;
- rand_s(&seed);
- srand(seed);
-#endif
-}
}
#endif