From 5ae77dc8fa536e943691ba68e086d26982796dec Mon Sep 17 00:00:00 2001 From: Valeriy Van Date: Fri, 26 Jul 2024 13:11:36 +0300 Subject: [PATCH] Declare _randomImplementationReference nonisolated(unsafe) --- Sources/geometrize/Int_random.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/geometrize/Int_random.swift b/Sources/geometrize/Int_random.swift index acdd5c7..a411de8 100644 --- a/Sources/geometrize/Int_random.swift +++ b/Sources/geometrize/Int_random.swift @@ -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, using generator: inout SplitMix64) -> Int {