https://github.com/lina-torovoltas/random-dumpgen
Random dump generator in hex and oct format
https://github.com/lina-torovoltas/random-dumpgen
c dump generator hex oct
Last synced: 12 months ago
JSON representation
Random dump generator in hex and oct format
- Host: GitHub
- URL: https://github.com/lina-torovoltas/random-dumpgen
- Owner: lina-torovoltas
- License: mit
- Created: 2025-06-21T14:51:31.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-06-21T15:44:44.000Z (12 months ago)
- Last Synced: 2025-06-21T16:34:25.763Z (12 months ago)
- Topics: c, dump, generator, hex, oct
- Language: C
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Random-DumpGen




Random dump generator in hexadecimal and octal format.
## Usage
To generate a hexadecimal dump:
```bash
$ ./rdumpgen -hex
Enter the number of lines: 10
Enter the number of rows per line: 5
File dump.txt has been successfully generated in hexadecimal format.
$ cat dump.txt
00000000 3A 1F A7 09 4C
00000001 00 FF 23 88 7E
...
```
Each line begins with an 8-digit hexadecimal address.
Followed by N random bytes (`00`–`FF`) in uppercase hex.
Maximum allowed lines: **4,294,967,296 (2³²)**
To generate a octal dump:
```bash
$ ./rdumpgen -oct
Enter the number of lines: 10
Enter the number of rows per line: 5
File dump.txt has been successfully generated in octal format.
$ cat dump.txt
0000 12 33 07 55 60
0001 03 11 02 71 17
...
```
Each line starts with a 4-digit octal address.
Followed by N random values in octal (`00`–`77`).
Maximum allowed lines: **4096**
## Dependencies
- `make` utility for building
- `gcc` utility for compiling C
## Building
1. Clone the repository.
2. Navigate to the project folder.
3. Build using `make`:
```bash
$ make
```
4. Run:
```bash
$ ./build/dumpgen -hex
```
## Contributing
Contributions are welcome!
Feel free to open pull requests to improve the project.
## Author
Developed by Lina Torovoltas — © 2025 All rights reserved.