Skip to content

Commit d18305c

Browse files
committed
We don't need the unavailable default implementation of RNG.next() to be ABI.
Make it @_aEIC so that we're not stuck with it forever if we get a better solution someday.
1 parent e49feab commit d18305c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/public/core/Random.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ extension RandomNumberGenerator {
7171
// unsigned integer will be used, recursing infinitely and probably blowing
7272
// the stack.
7373
@available(*, unavailable)
74+
@_alwaysEmitIntoClient
7475
public mutating func next() -> UInt64 { fatalError() }
7576

7677
/// Returns a value from a uniform, independent distribution of binary data.

0 commit comments

Comments
 (0)