mirror of
https://codeberg.org/pronounscc/pronouns.cc.git
synced 2024-11-20 18:39:51 +01:00
20 lines
225 B
Go
20 lines
225 B
Go
package main
|
|
|
|
import (
|
|
"crypto/rand"
|
|
"encoding/base64"
|
|
"fmt"
|
|
)
|
|
|
|
func main() {
|
|
b := make([]byte, 64)
|
|
|
|
_, err := rand.Read(b)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
|
|
s := base64.URLEncoding.EncodeToString(b)
|
|
|
|
fmt.Println(s)
|
|
}
|