Skip to content

random module randomly raises defect #16360

@arnetheduck

Description

@arnetheduck

result = T(rand(r, int(x.b) - int(x.a)) + int(x.a))

the int conversion prevents rand() from being used with any value larger than int.max, even though the function signature clearly allows the full range of Ordinal types to be used

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions