• Jérome Perrin's avatar
    patches/Restricted: allow random.Random · b512c173
    Jérome Perrin authored
    all member of random module are available (because in ZopeGuards, there's a
    random.__allow_access_to_unprotected_subobjects__ = 1), SystemRandom class
    also is, but Random class was not, even though there should be nothing unsafe
    in this.
    
    This is needed if we want to use a random number generator with a fixed seed
    to get reproductible results. We could use random.seed module level function
    but since this is also used by several things in ERP5 this does not produce
    reproductible sequences.
    b512c173
Name
Last commit
Last update
bt5 Loading commit data...
erp5 Loading commit data...
product Loading commit data...
scalability_test Loading commit data...
slapos Loading commit data...
tests Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
CHANGES.erp5.util.txt Loading commit data...
MANIFEST.in Loading commit data...
Products Loading commit data...
README.erp5.util.txt Loading commit data...
setup.py Loading commit data...