unloop a one iteration loop
This commit is contained in:
parent
aee4ad54b1
commit
ce0f473e81
14
fun.go
14
fun.go
|
@ -108,15 +108,13 @@ func shortxid(xid string) string {
|
|||
|
||||
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:]]+`)
|
||||
|
|
Loading…
Reference in New Issue