added embeddedTime fuzzing to pubkey and getpubkey message assembly

This commit is contained in:
Jonathan Warren 2013-04-02 12:42:27 -04:00
parent df2b996b88
commit 89b23c0cd5

View File

@ -2182,7 +2182,7 @@ class singleWorker(QThread):
myAddress = addressInKeysFile
break
embeddedTime = int(time.time())+random.randrange(-300, 300) #the current time plus or minus five minutes
embeddedTime = int(time.time()+random.randrange(-300, 300)) #the current time plus or minus five minutes
payload = pack('>I',(embeddedTime))
payload += encodeVarint(addressVersionNumber) #Address version number
payload += encodeVarint(streamNumber)
@ -2567,7 +2567,7 @@ class singleWorker(QThread):
def requestPubKey(self,addressVersionNumber,streamNumber,ripe):
payload = pack('>I',int(time.time()))
payload = pack('>I',(int(time.time())+random.randrange(-300, 300)))#the current time plus or minus five minutes.
payload += encodeVarint(addressVersionNumber)
payload += encodeVarint(streamNumber)
payload += ripe