unloop a one iteration loop
This commit is contained in:
parent
aee4ad54b1
commit
ce0f473e81
2
fun.go
2
fun.go
|
@ -108,7 +108,6 @@ func shortxid(xid string) string {
|
||||||
|
|
||||||
func xfiltrate() string {
|
func xfiltrate() string {
|
||||||
letters := "BCDFGHJKLMNPQRSTVWXYZbcdfghjklmnpqrstvwxyz1234567891234567891234"
|
letters := "BCDFGHJKLMNPQRSTVWXYZbcdfghjklmnpqrstvwxyz1234567891234567891234"
|
||||||
for {
|
|
||||||
var b [18]byte
|
var b [18]byte
|
||||||
rand.Read(b[:])
|
rand.Read(b[:])
|
||||||
for i, c := range b {
|
for i, c := range b {
|
||||||
|
@ -116,7 +115,6 @@ func xfiltrate() string {
|
||||||
}
|
}
|
||||||
s := string(b[:])
|
s := string(b[:])
|
||||||
return s
|
return s
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var re_hashes = regexp.MustCompile(`(?:^|\W)#[[:alnum:]]+`)
|
var re_hashes = regexp.MustCompile(`(?:^|\W)#[[:alnum:]]+`)
|
||||||
|
|
Loading…
Reference in New Issue