#random #error #numbers #generator

app sorn

soorn is a CLI tool to generate <REPEAT> random strings each consisting of <COMPONENTS> random strings each of length <LENGTH> each and separated by -. Between the output of two random strings, the program sleeps for <SLEEP> seconds. The program will print the output in double quotes unless the –raw option is set.

2 releases

Uses new Rust 2024

new 0.1.1 May 24, 2025
0.1.0 May 17, 2025

#914 in Command line utilities

Download history 120/week @ 2025-05-14

120 downloads per month

MIT/Apache

7KB

sorn

sorn is a CLI tool to generate random strings of length and sleeps for seconds between outputs.

The program is designed to be run from the command line and takes the following arguments:

  • --length: The length of the random string to generate.

  • --sleep: The number of seconds to sleep between generating random strings.

  • --repeat: The number of times to repeat the process of generating a random string and sleeping.

The program uses the clap crate for command line argument parsing. The program uses the rand crate to generate random strings and the std::thread module to sleep.

Usage: sorn_cli [OPTIONS]

Options:
  -l, --length <LENGTH>
          number of random characters to generate
          
          [default: 32]

  -s, --sleep <SLEEP>
          number of seconds to sleep
          
          [default: 10]

  -r, --repeat <REPEAT>
          number of times to repeat
          
          [default: 1000000000]

  -h, --help
          Print help (see a summary with '-h')

Building

  • Update dependencies
cargo update
  • Check with clippy:
cargo clippy -- -W clippy::pedantic
  • Run current version of code and print help
cargo run -- --help
  • Install on your local computer
cargo install --path .

Dependencies

~1.4–2MB
~37K SLoC