randstr 0.2.1

Generates random strings
Documentation
  • Coverage
  • 100%
    27 out of 27 items documented2 out of 25 items with examples
  • Size
  • Source code size: 12.85 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 509.1 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 17s Average build duration of successful builds.
  • all releases: 17s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Gottox

randstr

Generates random strings based on given alphabets

Example

use randstr::randstr;

let mut generator = randstr()
  .len(10)
  .all()
  .build();
let rand = generator.generate();
assert_eq!(10, rand.len());