in the beginning, there was darkness

This commit is contained in:
2025-05-09 17:17:55 -07:00
commit 308e237fc6
6 changed files with 158 additions and 0 deletions

13
data/rand.go Normal file
View File

@@ -0,0 +1,13 @@
package data
const saltLength = 32
func Salt() ([]byte, error) {
salt := make([]byte, saltLength)
_, err := rand.Read(salt)
if err != nil {
return nil, err
}
return salt, nil
}