Skip to content

w1rand #330

Description

@wangyi-fudan

Dear rurban:
Just come to announce an improved version of wyrand, faster simpler and passed BigCrush

static inline uint64_t w1rand(uint64_t *s) {
const uint64_t c = 0xd07ebc63274654c7ull;
*s += c;
__uint128_t t = (__uint128_t)*s * (*s ^ c);
return (t >> 64) ^ t;
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions