Skip to content

Instantly share code, notes, and snippets.

View acnologia000's full-sized avatar
🎯
Focusing

hridyansh thakur acnologia000

🎯
Focusing
View GitHub Profile
@acnologia000
acnologia000 / main.go
Created June 1, 2021 11:21 — forked from dopey/main.go
How to generate secure random strings in golang with crypto/rand.
package main
import (
"crypto/rand"
"encoding/base64"
"fmt"
"io"
)
// Adapted from https://elithrar.github.io/article/generating-secure-random-numbers-crypto-rand/