https://github.com/n0str/rgen
Easy to use helpers for random data generation
https://github.com/n0str/rgen
Last synced: 4 months ago
JSON representation
Easy to use helpers for random data generation
- Host: GitHub
- URL: https://github.com/n0str/rgen
- Owner: n0str
- Created: 2020-12-21T14:49:20.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-07-29T13:10:53.000Z (almost 3 years ago)
- Last Synced: 2025-10-11T13:35:22.435Z (8 months ago)
- Language: Go
- Size: 453 KB
- Stars: 0
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
rgen
==========
Easy to use helpers for random data generation
[](https://github.com/n0str/rgen/actions)
[](https://goreportcard.com/report/github.com/n0str/rgen)
Usage
-----
Run binary file with the following arguments
```
Usage: ./rgen:
Commands: id58, id58l, id58u, id92
Arguments:
-n int
how many symbols to generate (default 10)
Command: word
Arguments:
-n int
how many words to generate (default 4)
```
Output
-----
Sample output of `for i in {1..5}; do ./rgen id58 -n 16; done`
```
qGGXyV3JfbAsFFDy
gFDvKc2uNbeCnuMj
8vBJxASnbdPXFFeX
8ssaJNpYkqUep9tB
MoCQpSPTwouywycE
```
Sample output of `for i in {1..5}; do ./rgen id58l -n 4; done`
```
pa4u
sc99
ua2d
eohp
o3wr
```
Sample output of `for i in {1..3}; do ./rgen id58u -n 31; done`
```
2R5TG33TABP9KDLAQ4AY7DZ3EZ4SE85
6NCQNEMNPBMEGW8CBVDKHEQC13V6SJT
JRVM1XC7QTGKSFHH3EALRSYPQQF8MD9
```
Sample output of `for i in {1..3}; do ./rgen id92 -n 9; done`
```
Ke!.rBp2y
R\3s:ynf[
ga8Ue7[w
```
Sample output of `for i in {1..3}; do ./rgen word -n 5; done`
```
thiller-matinal-kecked-spaned-slept
torched-hamba-gaijin-delve-fact
kutch-cubebs-mineral-acting-ridgy
```
Installation
-----
```
go get github.com/n0str/rgen
```
You can also download release files from [GitHub](https://github.com/n0str/rgen/releases/tag/v1.1)
Build
-----
Clone the repository, compile binary for linux, macos or windows and run.
```
git clone https://github.com/n0str/rgen
cd rgen
GOOS=linux go build -o rgen-linux .
```
Or you can compile binary for linux, macos or windows with docker.
```
git clone https://github.com/n0str/rgen
cd rgen
docker-compose run --rm rgen make build-linux
```
And binary file will be in directory "build".
```
cd build
```
Now you can run the binary file `rgen-linux`