[][src]Trait unqlite::Util

pub trait Util {
    fn random_string(&self, buf_size: u32) -> Vec<u8>;
fn random_num(&self) -> u32; }

Utility interfaces.

Required methods

fn random_string(&self, buf_size: u32) -> Vec<u8>

Generate random string using the UnQLite PRNG.

It will generate a english alphabet based string of length buf_size (last argument).

fn random_num(&self) -> u32

Generate random number using the UnQLite PRNG.

It will return a 32-bit unsigned integer between 0 and 0xFFFFFFFF.

Loading content...

Implementors

impl Util for UnQLite[src]

Loading content...