Skip to content

Commit 7c0ed24

Browse files
authored
[stdlib] Document Windows implementation of SystemRandomNumberGenerator (#28268)
1 parent 724ff1e commit 7c0ed24

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
@@ -144,6 +144,7 @@ extension RandomNumberGenerator {
144144
/// - Apple platforms use `arc4random_buf(3)`.
145145
/// - Linux platforms use `getrandom(2)` when available; otherwise, they read
146146
/// from `/dev/urandom`.
147+
/// - Windows uses `BCryptGenRandom`.
147148
@frozen
148149
public struct SystemRandomNumberGenerator: RandomNumberGenerator {
149150
/// Creates a new instance of the system's default random number generator.

0 commit comments

Comments
 (0)