[][src]Function spotify_oauth::generate_random_string

pub fn generate_random_string(length: usize) -> String

Generate a random alphanumeric string with a given length.

Example

// Uses elapsed seconds and the current timestamp to return a timestamp offset by the seconds.
use spotify_oauth::generate_random_string;

let timestamp = generate_random_string(20);