aboutsummaryrefslogtreecommitdiff
path: root/lib/random.go
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2025-04-25 14:48:21 -0400
committerXe Iaso <me@xeiaso.net>2025-04-25 14:57:01 -0400
commit601ff61182b4f62fa8822c98dba36fd3985a6b0d (patch)
tree7e996f85eb55d9bc5158e537119ca72efdb82b3b /lib/random.go
parent24f8ba729b180fb420995b8c6b592f23b3e5a552 (diff)
downloadanubis-Xe/make-anubis-less-paranoid.tar.xz
anubis-Xe/make-anubis-less-paranoid.zip
fix(lib): make Anubis less paranoidXe/make-anubis-less-paranoid
Previously Anubis would aggressively make sure that the client cookie matched exactly what it should. This has turned out to be too paranoid in practice and has caused problems with Happy Eyeballs et. al. This is a potential fix to #303 and #289.
Diffstat (limited to 'lib/random.go')
-rw-r--r--lib/random.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/random.go b/lib/random.go
deleted file mode 100644
index 79cded4..0000000
--- a/lib/random.go
+++ /dev/null
@@ -1,9 +0,0 @@
-package lib
-
-import (
- "math/rand"
-)
-
-func randomJitter() bool {
- return rand.Intn(100) > 10
-}