[−][src]Function safe_app::utils::generate_random_string
pub fn generate_random_string(length: usize) -> Result<String, CoreError>
Generates a String
from length
random UTF-8 char
s. Note that the NULL character will be
excluded to allow conversion to a CString
if required, and that the actual len()
of the
returned String
will likely be around 4 * length
as most of the randomly-generated char
s
will consume 4 elements of the String
.