Generates a string containing uniformly selected random bytes with the requested length.
As the returned bytes are selected completely randomly, the resulting string is likely
to contain unprintable characters or invalid UTF-8 sequences. It may be necessary to
encode it before transmission or display.
Parameters
length
The length of the random string that should be returned in bytes; must be 1 or greater.
Return Values
A string containing the requested number of random bytes.
Errors/Exceptions
If the value of length is less than 1,
a ValueError will be thrown.