Skip to main content

unique_padded

Function unique_padded 

Source
pub fn unique_padded(padding: i64) -> Result<String>
Expand description

A new unique ID with padding random hex characters after the 13 of uniqid() (none when padding is 0 or less).

Fails like PHP when the system cannot provide random bytes.

PHP: ID::unique($padding).