Use mutableBytesPtr in SecretBox as well

This commit is contained in:
Frank Denis 2015-01-06 14:53:26 +01:00
parent 090ecf62ee
commit 3a692038e1
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ public class SecretBox {
if k == nil {
return nil
}
randombytes_buf(UnsafeMutablePointer<UInt8>(k!.mutableBytes), UInt(k!.length))
randombytes_buf(k!.mutableBytesPtr, UInt(k!.length))
return k
}
@ -31,7 +31,7 @@ public class SecretBox {
if n == nil {
return nil
}
randombytes_buf(UnsafeMutablePointer<UInt8>(n!.mutableBytes), UInt(n!.length))
randombytes_buf(n!.mutableBytesPtr, UInt(n!.length))
return n
}