output: str: fix rand.Intn call
This commit is contained in:
parent
0b7aff8bd1
commit
4d8d5a00f4
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user