Haven't programmed in a long time. Last project was a GCODE pathway generator I wrote several years back. My compiler is obviously several years out of date.
Uses time(), itoa(), rand(). Current standard compliant compilers should have , , , and to_string() in suppliment to those more deprecated functions.
This is a very simple, high speed method of generatinga alot of randomized junk data onto your drive. Make sure you have about 300MB of RAM available for the overhead. An older non-SSD might croak.
Useful for making old files unrecoverable by overwriting the old space on a drive. Doesn't go about overwriting any file tables, partitions, etc. Only where the file system allows it to dump the files by defualt. So it's fairly safe, since you're not completely rewriting the disk.