[embedded] Add Set to the embedded stdlib

This commit is contained in:
Kuba Mracek
2023-12-04 15:39:45 -08:00
parent 5e0bcabc8b
commit 2f0883ab24
15 changed files with 183 additions and 15 deletions

View File

@@ -275,3 +275,10 @@ public func swift_deletedMethodError() -> Never {
public func swift_willThrow() throws {
}
@_silgen_name("arc4random_buf")
public func arc4random_buf(buf: UnsafeMutableRawPointer, nbytes: Int)
@_silgen_name("swift_stdlib_random")
public func swift_stdlib_random(_ buf: UnsafeMutableRawPointer, _ nbytes: Int) {
arc4random_buf(buf: buf, nbytes: nbytes)
}