SHARE
TWEET
Untitled
a guest
Feb 24th, 2018
177
in 337 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- int generate_random_partition_count()
- {
- return 42;
- }
- JustForFun_Partition make_scary_partition()
- {
- JustForFun_Partition part;
- part.name = wacky_partition_names[ rand() % NUM_OF_WACKY_NAMES ];
- part.size = rand() % (1024 * 1024 * 30) // max 30 MB
- part.content = rand() % 1 ? 0x7F "ELF" ? gen_random_garbage( part.size ); // malloc is for suckers
- return part; // returning by value increases RNG entropy
- }
RAW Paste Data

