daily pastebin goal
52%
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!
  1. int generate_random_partition_count()
  2. {
  3.     return 42;
  4. }
  5.  
  6. JustForFun_Partition make_scary_partition()
  7. {
  8.     JustForFun_Partition part;
  9.  
  10.    part.name = wacky_partition_names[ rand() % NUM_OF_WACKY_NAMES ];
  11.    part.size = rand() % (1024 * 1024 * 30) // max 30 MB
  12.    part.content = rand() % 1 ? 0x7F "ELF" ? gen_random_garbage( part.size ); // malloc is for suckers
  13.  
  14.     return part; // returning by value increases RNG entropy
  15. }
RAW Paste Data
Pastebin PRO SPRING Special!
Get 60% OFF Pastebin PRO accounts!
Top