diff options
Diffstat (limited to 'kpov_judge/tasks/copy_rename_20_files_tail_env')
-rw-r--r-- | kpov_judge/tasks/copy_rename_20_files_tail_env/task.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/kpov_judge/tasks/copy_rename_20_files_tail_env/task.py b/kpov_judge/tasks/copy_rename_20_files_tail_env/task.py index fc05b7f..6758e34 100644 --- a/kpov_judge/tasks/copy_rename_20_files_tail_env/task.py +++ b/kpov_judge/tasks/copy_rename_20_files_tail_env/task.py @@ -102,6 +102,7 @@ def task(IP_NM, DNS_NM, IP_static, DNS_static): return results def gen_params(user_id, params_meta): + import random params = dict() r = random.Random(user_id) # IP_NM, DNS_NM, IP_static, DNS_static) @@ -110,7 +111,11 @@ def gen_params(user_id, params_meta): params['DNS_NM'] = r.choice(dns_servers) params['IP_NM'], params['IP_static'] = kpov_random_helpers.IPv4_addr_gen(r, net, 2) params['DNS_static'] = r.choice(dns_servers) - return params + count = 0 + while(count<user_id): + params[count]=random.randInt(10000000,99999999) + count=count+1 + return params def task_check(results, params): import re |