Minor code reorganization and polishing
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"encoding/base64"
|
||||
)
|
||||
|
||||
// RandomHash generates a random cryptograph base64 string of the given length.
|
||||
func RandomHash(len int) string {
|
||||
buff := make([]byte, len)
|
||||
rand.Read(buff)
|
||||
|
||||
Reference in New Issue
Block a user