summaryrefslogtreecommitdiff
path: root/kpov_judge/tasks/rename_grep_network
diff options
context:
space:
mode:
Diffstat (limited to 'kpov_judge/tasks/rename_grep_network')
-rw-r--r--kpov_judge/tasks/rename_grep_network/task.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/kpov_judge/tasks/rename_grep_network/task.py b/kpov_judge/tasks/rename_grep_network/task.py
index 948edcf..cba9ac9 100644
--- a/kpov_judge/tasks/rename_grep_network/task.py
+++ b/kpov_judge/tasks/rename_grep_network/task.py
@@ -181,13 +181,13 @@ def gen_params(user_id, params_meta):
import random
params = dict()
r = random.Random(user_id)
- params['testip'] = kpov_random_helpers.IPv4_addr_gen(r,
+ params['testip'] = kpov_util.IPv4_addr_gen(r,
network = '10.94.80.0/19', n_generated=1)[0]
- params['testuser'] = kpov_random_helpers.default_generators['username'](r)
- params['passwd'] = kpov_random_helpers.alnum_gen(r, 8)
+ params['testuser'] = kpov_util.default_generators['username'](r)
+ params['passwd'] = kpov_util.alnum_gen(r, 8)
params['magicstr'] = "".join([r.choice("qwerztlpoQWERTPOL") for i in range(10)])
- params['mntdir'] = "/" + kpov_random_helpers.default_generators['filename'](r)
- params['rndseed'] = kpov_random_helpers.alnum_gen(r, 8)
+ params['mntdir'] = "/" + kpov_util.default_generators['filename'](r)
+ params['rndseed'] = kpov_util.alnum_gen(r, 8)
return params