Skip to content

Fix test_random on 32-bit Architectures #20

Closed
@Alexhuszagh

Description

@Alexhuszagh

Currently, test_random uses the following code for generating the number of iterations:

const N_ITER: usize = 1 << 32;

This overflows if usize has 32-bits or less.

A trivial fix is:

const N_ITER: u64 = 1 << 32;

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