Minor code reorganization and polishing

This commit is contained in:
2022-03-06 14:53:15 +01:00
parent 0f22ca3437
commit c76e078682
5 changed files with 165 additions and 162 deletions
+1
View File
@@ -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)