-
oliver@apple.com authored
Reviewed by Geoff Garen. Don't seed the JS random number generator from time() https://bugs.webkit.org/show_bug.cgi?id=41868 <rdar://problem/8171025> Switch to using the secure random number generator to seed the fast random generator, and make the generator be per global object. * runtime/JSGlobalData.cpp: (JSC::JSGlobalData::JSGlobalData): * runtime/JSGlobalData.h: * runtime/JSGlobalObject.h: (JSC::JSGlobalObject::JSGlobalObjectData::JSGlobalObjectData): (JSC::JSGlobalObject::weakRandomNumber): * runtime/MathObject.cpp: (JSC::mathProtoFuncRandom): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65947 268f45cc-cd09-0410-ab3c-d52691b4dbfc
a27a7a70