all repos — honk @ 2d799a8e563e05898bbc8d2ccbd93f900915d446

my fork of honk

unloop a one iteration loop
Ted Unangst tedu@tedunangst.com
Sun, 16 Jun 2019 19:18:33 -0400
commit

2d799a8e563e05898bbc8d2ccbd93f900915d446

parent

d0c3466096be24942914dd6fdc502bb360ce633e

1 files changed, 6 insertions(+), 8 deletions(-)

jump to
M fun.gofun.go

@@ -108,15 +108,13 @@ }

func xfiltrate() string { letters := "BCDFGHJKLMNPQRSTVWXYZbcdfghjklmnpqrstvwxyz1234567891234567891234" - for { - var b [18]byte - rand.Read(b[:]) - for i, c := range b { - b[i] = letters[c&63] - } - s := string(b[:]) - return s + var b [18]byte + rand.Read(b[:]) + for i, c := range b { + b[i] = letters[c&63] } + s := string(b[:]) + return s } var re_hashes = regexp.MustCompile(`(?:^|\W)#[[:alnum:]]+`)