diff options
| author | Christophe Simonis <chs@odoo.com> | 2015-08-06 16:09:19 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2015-08-06 16:09:19 +0200 |
| commit | 95ac2cfd10f66d1ad0d5a369f62ee8af72b6f7c8 (patch) | |
| tree | 9078494e7b3d3d57cb5e59b9ac455f424975bccd /addons/auth_signup/res_users.py | |
| parent | f62cfd29803725bd755c353853d0313f4237f9e0 (diff) | |
| parent | be58335f7f6bf727210e60accf67a47b98c17042 (diff) | |
[MERGE] forward port of branch saas-6 up to be58335
Diffstat (limited to 'addons/auth_signup/res_users.py')
| -rw-r--r-- | addons/auth_signup/res_users.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/auth_signup/res_users.py b/addons/auth_signup/res_users.py index 043a78fed58..4168e35fecf 100644 --- a/addons/auth_signup/res_users.py +++ b/addons/auth_signup/res_users.py @@ -18,7 +18,7 @@ class SignupError(Exception): def random_token(): # the token has an entropy of about 120 bits (6 bits/char * 20 chars) chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789' - return ''.join(random.choice(chars) for i in xrange(20)) + return ''.join(random.SystemRandom().choice(chars) for i in xrange(20)) def now(**kwargs): dt = datetime.now() + timedelta(**kwargs) |
