title: How to properly generate a random bytestring in haskell
body: <p>I'm new to haskell and would like to write a function to generate random byte strings.
  From my perspective <a href="http://hackage.haskell.org/package/crypto-api-0.3.1/docs/Crypto-Random.html" rel="nofollow"><code>Crypto.Random</code></a> (from <a href="https://hackage.haskell.org/package/crypto-api-0.3.1" rel="nofollow">crypto-api v0.3.1</a>) seems to be the best module to use, but I can't figure it out.</p>
  
  <p>I would like to do something like the following:</p>
  
  <pre><code>let size = 2048
  let bytestring = randomByteString size
  </code></pre>