File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
library/crypto-rand/src/darwinMain/kotlin/org/kotlincrypto/random/internal Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 3
3
* .iml
4
4
.idea /
5
5
local.properties
6
+ .kotlin /
7
+
8
+ gh-pages /*
9
+ ! gh-pages /publish.sh
Original file line number Diff line number Diff line change 13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
**/
16
+ @file:Suppress(" UnnecessaryOptInAnnotation" )
17
+
16
18
package org.kotlincrypto.random.internal
17
19
18
20
import kotlinx.cinterop.*
@@ -22,8 +24,8 @@ import org.kotlincrypto.random.RandomnessProcurementException
22
24
23
25
@Throws(RandomnessProcurementException ::class )
24
26
internal actual fun ByteArray.cryptoRandFill () {
25
- @OptIn(ExperimentalForeignApi ::class )
26
- val status: Int = usePinned { pinned ->
27
+ @OptIn(ExperimentalForeignApi ::class , UnsafeNumber :: class )
28
+ val status = usePinned { pinned ->
27
29
// kSecRandomDefault is synonymous to NULL
28
30
SecRandomCopyBytes (kSecRandomDefault, size.toUInt().convert(), pinned.addressOf(0 ))
29
31
}
You can’t perform that action at this time.
0 commit comments