title: Generate random bytes Cocoa?
body: <p>I need to generate some random data to append to my file for encryption. How would I go about doing this? Would it be sort of the same idea as generating a string of random characters? </p>
  
  <p>Something like: </p>
  
  <pre><code>NSData *randomData = @"what should i put here?";
  </code></pre>
  
  <p>And then use the rand() function to randomize the data?</p>
  
  <p>Your help is greatly appreciated</p>