unloop a one iteration loop

This commit is contained in:
Ted Unangst 2019-06-16 19:18:33 -04:00
parent aee4ad54b1
commit ce0f473e81
1 changed files with 6 additions and 8 deletions

2
fun.go
View File

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