(orig_dict, random_source)
| 183 | |
| 184 | |
| 185 | def mutate_dict(orig_dict, random_source): |
| 186 | new_dict = dict(orig_dict) |
| 187 | for key, value in new_dict.items(): |
| 188 | rand_val = random_source.random() * sys.maxsize |
| 189 | if isinstance(key, (int, bytes, str)): |
| 190 | new_dict[key] = type(key)(rand_val) |
| 191 | return new_dict |
| 192 | |
| 193 | |
| 194 | random_source = random.Random(BENCHMARK_RANDOM_SEED) |
no test coverage detected