Registry / utility / random-string

random-string

JSON →
library1.1.0rscratesunverified

Allows to generate random strings based on a given charset and length.

# Cargo.toml [dependencies] random-string = "1.1.0"
INSTALL
IMPORT
SIG · RANDOM-STRING
R
random-string
utilityrustv1.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

generate
use random_string::generate;

Generates a random 10-character string from lowercase letters.

use random_string::generate; let charset = "abcdefghijklmnopqrstuvwxyz"; let random_str = generate(10, charset); println!("{}", random_str);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
random-string — cargo add random-string · libregistry