From 4d8d5a00f4a1f3afdbbfd9b98a63e7ab7810be3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Teichgr=C3=A4ber?= Date: Thu, 26 Apr 2012 21:23:45 +0200 Subject: [PATCH] output: str: fix rand.Intn call --- output.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/output.go b/output.go index 42c0289..2b101dd 100644 --- a/output.go +++ b/output.go @@ -95,7 +95,7 @@ func (w *htmlOut) str(s string) *htmlOut { ws = """ default: if w.obfuscate { - if rand.Intn(1) == 0 { + if rand.Intn(2) == 0 { ws = fmt.Sprintf("&#%d;", r) } else { ws = fmt.Sprintf("&#%x;", r)