Skip to content

Commit 633d27b

Browse files
committed
[embedded] Use @_extern(c) instead of @_silgen_name on arc4random_buf
1 parent 76bfd3b commit 633d27b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

stdlib/public/core/EmbeddedRuntime.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,10 +275,9 @@ public func swift_deletedMethodError() -> Never {
275275
public func swift_willThrow() throws {
276276
}
277277

278-
@_silgen_name("arc4random_buf")
278+
@_extern(c, "arc4random_buf")
279279
public func arc4random_buf(buf: UnsafeMutableRawPointer, nbytes: Int)
280280

281-
@_silgen_name("swift_stdlib_random")
282281
public func swift_stdlib_random(_ buf: UnsafeMutableRawPointer, _ nbytes: Int) {
283282
arc4random_buf(buf: buf, nbytes: nbytes)
284283
}

0 commit comments

Comments
 (0)