Skip to content

Adding next_u128 and try_next_u128 to Rng and TryRng respectively. #77

Description

@Apersoma

Background

What is your motivation?

There not a compact way of randomly generating 128-bit integers with Rng and TryRng, unlike the built-ins for u32 and u64, or doing rng.next_rng() as u8/u16 for u8 and u16.

What type of application is this? (E.g. cryptography, game, numerical simulation)

Could be used by almost any application that uses 128-bit ints for something. I personally will be using this when generating test cases for mathematic functions on 128-bit integers.

Feature request

Self-explanatory. Implemented here: #78

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions