MCPcopy Index your code
hub / github.com/TheAlgorithms/Go / getRandomString

Function getRandomString

cipher/transposition/transposition_test.go:25–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23}
24
25func getRandomString() string {
26 enRunes := []rune(enAlphabet)
27 b := make([]rune, rand.Intn(100))
28 for i := range b {
29 b[i] = enRunes[rand.Intn(len(enRunes))]
30 }
31 return string(b)
32}
33
34func TestEncrypt(t *testing.T) {
35 fn := func(text string, keyWord string) (bool, error) {

Callers 3

TestEncryptFunction · 0.85
TestDecryptFunction · 0.85
FuzzTranspositionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected