diff options
author | Yawning Angel <yawning@schwanenlied.me> | 2014-05-24 04:47:10 +0000 |
---|---|---|
committer | Yawning Angel <yawning@schwanenlied.me> | 2014-05-24 04:47:10 +0000 |
commit | b3f0f51775ae2e19c62c70e15f77ef991ad4bb49 (patch) | |
tree | 0a779fe20ffead1e8a87ba209ac566829c7ce93a /obfs4.go | |
parent | e77ddddf4d10dbd3387c2e4714c287c546c70512 (diff) |
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.
Diffstat (limited to 'obfs4.go')
-rw-r--r-- | obfs4.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |