Skip to content

Commit

Permalink
Declare _randomImplementationReference nonisolated(unsafe)
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriyvan committed Jul 26, 2024
1 parent b74813d commit 5ae77dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/geometrize/Int_random.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Foundation
// Tests could change default implementation e.g. to read pre-generated random numbers from file.

// swiftlint:disable:next identifier_name
var _randomImplementationReference = _randomImplementation
nonisolated(unsafe) var _randomImplementationReference = _randomImplementation

// swiftlint:disable:next identifier_name
func _randomImplementation(in range: ClosedRange<Int>, using generator: inout SplitMix64) -> Int {
Expand Down

0 comments on commit 5ae77dc

Please sign in to comment.