Skip to content
Snippets Groups Projects
Commit ee7c4921 authored by Phil's avatar Phil
Browse files

Fixed regression in RandMAC

parent e28fc9af
No related branches found
No related tags found
No related merge requests found
...@@ -226,7 +226,7 @@ class RandMAC(RandString): ...@@ -226,7 +226,7 @@ class RandMAC(RandString):
v = RandByte() v = RandByte()
elif "-" in template[i]: elif "-" in template[i]:
x,y = template[i].split("-") x,y = template[i].split("-")
v = RandSeq(int(x,16), int(y,16)) v = RandNum(int(x,16), int(y,16))
else: else:
v = int(template[i],16) v = int(template[i],16)
self.mac += (v,) self.mac += (v,)
...@@ -267,8 +267,6 @@ class RandOID(RandString): ...@@ -267,8 +267,6 @@ class RandOID(RandString):
return ".".join(oid) return ".".join(oid)
from pprint import pprint
class RandRegExp(RandField): class RandRegExp(RandField):
def __init__(self, regexp, lambda_=0.3,): def __init__(self, regexp, lambda_=0.3,):
self._regexp = regexp self._regexp = regexp
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment