title: How to use UnsafeMutablePointer in Swift 3?
body: <p>I have the following code written in Swift 2.2:</p>
  
  <pre><code>let keyData = NSMutableData(length: 64)!
  SecRandomCopyBytes(kSecRandomDefault, 64, UnsafeMutablePointer&lt;UInt8&gt;(keyData.mutableBytes))
  </code></pre>
  
  <p>XCode 8 highlights that second line and claims that </p>
  
  <blockquote>
    <p>Cannot invoke initializer for type 'UnsafeMutablePointer&lt;_>' with an
    argument list of type '(UnsafeMutableRawPointer)'</p>
  </blockquote>
  
  <p>While I appreciate XCode telling me this, I don't quite understand how to change the UnsafeMutableRawPointer to be acceptable.</p>
  
  <p>Does anyone know how to convert this code into Swift 3?</p>