WickedRandom
Adds various random string constructions.
- Random character string (letters and numbers)
- Random human names
- Random names
Usage
String.random(.upper, ofSize: 8) // ZOGPHLXZ
String.random([.lower, .numbers], ofSize: 12) // 3ngf6sd043sd
String.random(.default) // Infallible Party
String.random(.womanName) // Rose Young
String.random(.distinguished, delimiter: "_") // Vigilant_Galileo
Troubleshooting
XCTesting
If you are attempting to use the WickedRandom Swift Package in your XC Unit tests, you might see this error:
Undefined symbols for architecture arm64:
...
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
It is quite misleading, and can be solved by adding WickedRandom to Link Binary With Libraries
in your Tests target.