[SR-8143] Should RNG.next(upperBound: 0) be a preconditionFailure? #50675
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
standard library
Area: Standard library umbrella
Additional Detail from JIRA
md5: aa7632d8600c5ad6ba8cbd93aa8f3d7c
Issue Description:
Presently we have the following:
This seems like a pretty glaring violation of the documented behavior: "Returns a random value that is less than the given upper bound."
The text was updated successfully, but these errors were encountered: