diff options
Diffstat (limited to 'Source/JavaScriptCore/runtime/WeakRandom.h')
| -rw-r--r-- | Source/JavaScriptCore/runtime/WeakRandom.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/Source/JavaScriptCore/runtime/WeakRandom.h b/Source/JavaScriptCore/runtime/WeakRandom.h index 98b23c70d..3cd1016d3 100644 --- a/Source/JavaScriptCore/runtime/WeakRandom.h +++ b/Source/JavaScriptCore/runtime/WeakRandom.h @@ -56,11 +56,11 @@ namespace JSC { class WeakRandom { -friend class JSGlobalObject; // For access to initializeSeed() during replay. public: WeakRandom(unsigned seed) + : m_low(seed ^ 0x49616E42) + , m_high(seed) { - initializeSeed(seed); } // Returns the seed provided that you've never called get() or getUint32(). @@ -85,12 +85,6 @@ private: return m_high; } - void initializeSeed(unsigned seed) - { - m_low = seed ^ 0x49616E42; - m_high = seed; - } - unsigned m_low; unsigned m_high; }; |
