Closed mikezucc closed 9 years ago
What
Can you explain where you're getting this error? Because I've not seen any warnings or errors
there was a distinction between Uint and Int being taken as parameters to this function. thats all
It should've be fixed in the latest version a while ago.
Figured its an obvious fix but it had me baffled until I noticed the error >.< long day lmao
Swift 1.2 uses func SecRandomCopyBytes(rnd: SecRandomRef, count: Int, bytes: UnsafeMutablePointer) -> Int32 rather than func SecRandomCopyBytes(rnd: SecRandomRef, count: UInt, bytes: UnsafeMutablePointer) -> Int32
So just change the UInt(sizeof(UInt32)) to Int(sizeof(UInt32))