Some more DREI stuff

This commit is contained in:
Miroslav Stampar
2019-03-28 16:04:38 +01:00
parent 4b020c4257
commit 9b72545d09
76 changed files with 95 additions and 258 deletions

View File

@@ -9,6 +9,7 @@ import binascii
import os
import random
import uuid
import sys
class WichmannHill(random.Random):
"""
@@ -163,4 +164,9 @@ class WichmannHill(random.Random):
# Reference: https://github.com/urllib3/urllib3/blob/master/src/urllib3/filepost.py
def choose_boundary():
return uuid.uuid4().hex
return uuid.uuid4().hex
if sys.version_info.major > 2:
xrange = range
else:
xrange = xrange