Avatar
omochimetaru 5/18/2018 3:50 AM
2つの両方の保守的な性質を満たすもの(安全でもないし再現性も取れない)
3:50 AM
にするってパターンもありえるかも?
3:51 AM
いずれかの性質が欲しい時は明示的にそのようなジェネレータを使う。
3:51 AM
はい、RndomNumberGeneratorはプロトコルだから (edited)
3:51 AM
具体的な型としてそれぞれ提供されるはず。
3:52 AM
public struct Random : RandomNumberGenerator {
3:52 AM
The accepted proposal to add Random API to the standard library defines a single random source in the standard library. Users can create their own random sources by writing types that conform to the RandomNumberGenerator protocol. For convenience...
3:52 AM
このスレッド。
👍 1
3:57 AM
swift-evolution - This maintains proposals for changes and user-visible enhancements to the Swift Programming Language.
3:57 AM
The aspiration is that this RNG should be cryptographically secure, provide reasonable performance, and should be thread safe.
3:58 AM
cryptographically secureが should be って無意味に思う・・・
3:59 AM
must be じゃないなら、「稀にsecureでない」セキュリティバグを産みうるだけ