Skip to content

lina-torovoltas/Random-DumpGen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Random-DumpGen

Language License GitHub release Downloads

Random dump generator in hexadecimal and octal format.

Usage

To generate a hexadecimal dump:

  $ ./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 (00FF) in uppercase hex.
Maximum allowed lines: 4,294,967,296 (2³²)

To generate a octal dump:

  $ ./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 (0077).
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:
    $ make
  4. Run:
    $ ./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.

About

Random dump generator in hex and oct format

Topics

Resources

License

Stars

Watchers

Forks