Skip to content

Allow constructing generators from rand_xoshiro without checks for 0 #107

@Shatur

Description

@Shatur

It would be nice to have a way to avoid checks like this:

deal_with_zero_seed!(seed, Self, 16);

My use case is embedded development, and this check increases the code size. Since my seed comes from a hash function, I know it won't be zero.

Right now I simply vendor my own Xoshiro128PlusPlus from the C implementation because of this, but it would be nice to just use the well-known crate directly.

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