Author: Stephan <step...@stzal.com> Branch: Changeset: r82:e6a6b4c8a563 Date: 2011-05-18 18:57 +0200 http://bitbucket.org/pypy/lang-js/changeset/e6a6b4c8a563/
Log: use pypy.rlib.rrandom for random diff --git a/js/interpreter.py b/js/interpreter.py --- a/js/interpreter.py +++ b/js/interpreter.py @@ -1,6 +1,7 @@ - import math -import random +import time +from pypy.rlib import rrandom +random = rrandom.Random(int(time.time())) from js.jsparser import parse, ParseError from js.astbuilder import ASTBuilder from js.jsobj import global_context, W_Object,\ @@ -687,7 +688,6 @@ newlength += 1 return this -import time class W_DateObject(W_NativeObject): def Call(self, ctx, args=[], this=None): return create_object(ctx, 'Object') _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit