Skip to content

w1rand #123

@wangyi-fudan

Description

@wangyi-fudan

Hi,
wyrand has been updated to w1rand. faster, smaller:

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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions