Skip to content

Commit 4a40f02

Browse files
klzgradreeceyng
authored andcommitted
Fix rand seeding
1 parent 6917565 commit 4a40f02

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

forwardproxy.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ import (
4848

4949
func init() {
5050
caddy.RegisterModule(Handler{})
51+
52+
// Used for generating padding lengths. Not needed to be cryptographically secure.
53+
// Does not care about double seeding.
54+
rand.Seed(time.Now().UnixNano())
5155
}
5256

5357
// Handler implements a forward proxy.

0 commit comments

Comments
 (0)