@ -0,0 +1,15 @@
package main
import (
"crypto/rand"
"encoding/base64"
)
func GenerateRandomString(len int) (string, error) {
bin := make([]byte, len)
_, err := rand.Read(bin)
if err != nil {
return "", err
}
return base64.StdEncoding.EncodeToString(bin), nil
The note is not visible to the blocked user.