output: str: fix rand.Intn call

This commit is contained in:
Michael Teichgräber 2012-04-26 21:23:45 +02:00
parent 0b7aff8bd1
commit 4d8d5a00f4

View File

@ -95,7 +95,7 @@ func (w *htmlOut) str(s string) *htmlOut {
ws = """ ws = """
default: default:
if w.obfuscate { if w.obfuscate {
if rand.Intn(1) == 0 { if rand.Intn(2) == 0 {
ws = fmt.Sprintf("&#%d;", r) ws = fmt.Sprintf("&#%d;", r)
} else { } else {
ws = fmt.Sprintf("&#%x;", r) ws = fmt.Sprintf("&#%x;", r)