-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: urcd
action: commit
revision:
path_from:
revision_from: f60f990dd9d59c6e60bb77e39306886b53686c10:
path_to:
revision_to:

git.thebackupbox.net

urcd

git://git.thebackupbox.net/urcd

commit f60f990dd9d59c6e60bb77e39306886b53686c10
Author: root <root@localhost.(none)>
Date:   Tue Sep 16 19:27:00 2014 +0000

    [taia96n.pyx] (security) increased clockskew obfuscation (thanks chi)

diff --git a/src/taia96n.pyx b/src/taia96n.pyx

index 0558fdbeb3a4587eb75910662563f63b7f2cb3f2..

index ..7433f21e40a7dfe922ed37b8c3e241b710cfb42d 100644

--- a/src/taia96n.pyx
+++ b/src/taia96n.pyx
@@ -1,19 +1,12 @@
 #/usr/bin/env python
-from random import choice
+from random randrange
 from time import time

-long_offsets = [
- -8,8,-7,7,
- -6,6,-5,5,
- -4,4,-3,3,
- -2,2,-1,1,
-]
-
 def taia96n_now():
  now = time()
  return {
-  'sec':4611686018427387914L+long(now)+choice(long_offsets),
-  'nano':long(1000000000*(now%1)+500),
+  'sec':4611686018427387914L+long(now)+randrange(-8,8),
+  'nano':long(1000000000*(now%1)+randrange(0,512),
 }

 def tai_pack(s): return str(

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 16:49:20 2024