Skip to content

Commit

Permalink
Comments clarified
Browse files Browse the repository at this point in the history
  • Loading branch information
eminmuhammadi authored Jun 7, 2022
1 parent ad13bd7 commit af7a0c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import (
b64 "encoding/base64"
)

// Generates a random 32-bit string.
// Generates Random bytes in base64
func RandomBytesBase64(size int) string {
bytes := RandomBytes(32)

return b64.StdEncoding.EncodeToString(bytes)
}

// Generates random 12 bit
// Generates Random bytes
func RandomBytes(size int) []byte {
bytes := make([]byte, size)
rand.Read(bytes)
Expand Down

0 comments on commit af7a0c3

Please sign in to comment.