From ee7c4921798895700c6de1d9651b2303d030d54d Mon Sep 17 00:00:00 2001 From: Phil <phil@secdev.org> Date: Thu, 6 Aug 2009 23:58:15 +0200 Subject: [PATCH] Fixed regression in RandMAC --- scapy/volatile.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scapy/volatile.py b/scapy/volatile.py index d1f72c7b..873383ca 100644 --- a/scapy/volatile.py +++ b/scapy/volatile.py @@ -226,7 +226,7 @@ class RandMAC(RandString): v = RandByte() elif "-" in template[i]: x,y = template[i].split("-") - v = RandSeq(int(x,16), int(y,16)) + v = RandNum(int(x,16), int(y,16)) else: v = int(template[i],16) self.mac += (v,) @@ -267,8 +267,6 @@ class RandOID(RandString): return ".".join(oid) -from pprint import pprint - class RandRegExp(RandField): def __init__(self, regexp, lambda_=0.3,): self._regexp = regexp -- GitLab