Initial commit - secure RandomStringGenerator implementation
This commit is contained in:
17
SnowcloakUtils_test.go
Normal file
17
SnowcloakUtils_test.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package SnowcloakUtils
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestGenerateRandomString(t *testing.T) {
|
||||
fmt.Println("Test: 8 chars")
|
||||
fmt.Println(GenerateRandomString(8))
|
||||
fmt.Println("Test: 10 chars")
|
||||
fmt.Println(GenerateRandomString(10))
|
||||
fmt.Println("Test: 15 chars")
|
||||
fmt.Println(GenerateRandomString(15))
|
||||
fmt.Println("Test: 30 chars")
|
||||
fmt.Println(GenerateRandomString(30))
|
||||
}
|
Reference in New Issue
Block a user