re-seed PRNG when clearing the scope (577512, r=bz).

This commit is contained in:
Andreas Gal 2010-07-08 16:00:54 -07:00
parent 1cb8edcb96
commit 9f011207b0

View File

@ -3789,6 +3789,8 @@ JS_ClearScope(JSContext *cx, JSObject *obj)
for (key = JSProto_Null; key < JSProto_LIMIT * 3; key++)
JS_SetReservedSlot(cx, obj, key, JSVAL_VOID);
}
js_InitRandom(cx);
}
JS_PUBLIC_API(JSIdArray *)