[swift-evolution] Core Team vs Random number API discussion

Chris Lattner clattner at nondot.org
Wed Dec 6 17:16:26 CST 2017

Hi All,

FYI, the Core Team had a brief discussion about the direction of the random number API design being discussed.

The strong opinion of the core team is that such an API should *not* be designed with an attempt to service people writing crypto code.  Such clients will have requirements that are difficult to predict or that are hard to provide in general (e.g. “must run in constant time”).  These clients are also relatively few, compared the community of people who benefit from a good "general use" random number API.

As such, the core team strongly encourages the random number API design process to focus on building the best possible "general use" API, without worrying about the needs of crypto experts.

Beyond that, the core team did not discuss what the exact shape of the API should look like: it believes the community should continue hashing it out.  We just wanted to remove one big constraint from that design process.


-Chris & Swift Core Team

More information about the swift-evolution mailing list