From b3f0f51775ae2e19c62c70e15f77ef991ad4bb49 Mon Sep 17 00:00:00 2001 From: Yawning Angel Date: Sat, 24 May 2014 04:47:10 +0000 Subject: Move utils.go to csrand/csrand.go, and clean up the interface. All of the obfs4 code except unit tests now uses the csrand wrapper routines. --- obfs4.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'obfs4.go') diff --git a/obfs4.go b/obfs4.go index 3bbccb3..6978a97 100644 --- a/obfs4.go +++ b/obfs4.go @@ -51,7 +51,7 @@ const ( maxCloseDelayBytes = maxHandshakeLength maxCloseDelay = 60 - maxIatDelay = 100 + maxIatDelay = 100 ) type connState int @@ -472,7 +472,7 @@ func (c *Obfs4Conn) Write(b []byte) (n int, err error) { if err != nil { return 0, err } - time.Sleep(iatDelta * time.Microsecond) + time.Sleep(iatDelta * time.Microsecond) } } else { _, err = c.conn.Write(frameBuf.Bytes()) @@ -584,7 +584,7 @@ type Obfs4Listener struct { keyPair *ntor.Keypair nodeID *ntor.NodeID - seed *DrbgSeed + seed *DrbgSeed iatObfuscation bool closeDelayBytes int -- cgit v1.2.3