// return a random 16 digit string comprised of numbers suitable for
// use as a influxdb2 org_id or bucket_id
return a random 16 digit string comprised of numbers suitable for
use as a influxdb2 org_id or bucket_id
return a random 16 digit string comprised of numbers suitable for use as a influxdb2 org_id or bucket_id
pub fn rand_id() -> String {
    thread_rng()
        .sample_iter(&Standard)
        .filter_map(|c: u8| {
            if c.is_ascii_digit() {
                Some(char::from(c))
            } else {
                // discard if out of range
                None
            }
        })
        .take(16)
        .collect()
}
pub fn rand_id ( ) -> String { thread_rng ( ) . sample_iter ( & Standard ) . filter_map ( | c : u8 | { if c . is_ascii_digit ( ) { Some ( char :: from ( c ) ) } else { // discard if out of range None } } ) . take ( 16 ) . collect ( ) }
return a random 16 digit string comprised of numbers suitable for
use as a influxdb2 org_id or bucket_id
return a random 16 digit string comprised of numbers suitable for use as a influxdb2 org_id or bucket_id