Crates.io | seed_gen |
lib.rs | seed_gen |
version | 1.2.0 |
source | src |
created_at | 2024-08-13 19:48:42.030718 |
updated_at | 2024-08-21 22:49:30.420688 |
description | A small helper to work with seeds in shell scripts |
homepage | |
repository | https://github.com/hardliner66/seed_gen |
max_upload_size | |
id | 1336413 |
size | 16,906 |
A small helper tool that can be used when you need one or multiple seeds in a bash script.
If you want to call something with 10 random seeds you can do something like this:
# bash example
for seed in $(seed_gen random 10);
do
echo "$seed"
done
# fish example
for seed in (seed_gen r 10)
echo "$seed"
end
Usage: seed_gen <COMMAND>
Commands:
single Returns the provided seed. If seed is a string, it is hashed beforehand [aliases: s]
random Returns the specied amount of random seeds [aliases: r, rand]
range Returns numbers in a range
full Generates all values from u64::MIN to u64::MAX
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
Returns the provided seed. If seed is a string, it is hashed beforehand
Usage: seed_gen single <SEED>
Arguments:
<SEED> The specified seed
Options:
-h, --help Print help
Returns the specied amount of random seeds
Usage: seed_gen random [COUNT]
Arguments:
[COUNT] The amount of seeds to print
Options:
-h, --help Print help
Returns numbers in a range
Usage: seed_gen range [OPTIONS] <MIN> <MAX>
Arguments:
<MIN> The lowest number to print
<MAX> The highest number to print
Options:
-s, --step <STEP> The step size between two numbers
-h, --help Print help
Generates all values from u64::MIN to u64::MAX
Usage: seed_gen full
Options:
-h, --help Print help