Skip to content

rnd.next(0ULL, -1ULL) overflow crashes #109

@yang-er

Description

@yang-er

to = 2^64-1, from = 0, therefore to - from + 1 = 2^64 = 0 for unsigned long long.

Is there any solutions to random in [0, 2^64-1] in one shot?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions