We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd8bbbe commit 636fd45Copy full SHA for 636fd45
Ternary Search Tree/TST.playground/Contents.swift
@@ -4,12 +4,11 @@ import Cocoa
4
import Foundation
5
6
let treeOfStrings = TernarySearchTree<String>()
7
+let allowedChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
8
-//Random string generator from:
9
+//Random string generator from:
10
//http://stackoverflow.com/questions/26845307/generate-random-alphanumeric-string-in-swift/26845710
11
func randomAlphaNumericString(length: Int) -> String {
-
12
- let allowedChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
13
let allowedCharsCount = UInt32(allowedChars.characters.count)
14
var randomString = ""
15
0 commit comments