We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 225a149 commit fbe92a9Copy full SHA for fbe92a9
Sources/V8API/JSContext+closure.swift
@@ -23,7 +23,7 @@ extension JSContext {
23
func generateId() -> Int32 {
24
var id: Int32 = 0
25
repeat {
26
- id = Int32(bitPattern: arc4random())
+ id = Int32.random(in: 0...Int32.max)
27
} while functions[id] != nil
28
return id
29
}
0 commit comments