Skip to content

Use Piter's PRNG as the source of seeded randomness#1

Open
L-A wants to merge 2 commits intomattdesl:mainfrom
L-A:feature-piter-prng
Open

Use Piter's PRNG as the source of seeded randomness#1
L-A wants to merge 2 commits intomattdesl:mainfrom
L-A:feature-piter-prng

Conversation

@L-A
Copy link

@L-A L-A commented Dec 20, 2021

This swaps the pseudo-random number generator to use Piter's suggested "xorshift128", and keeps the rest of the sketch and utilities the same.

As a reference point, it brings the weight of this repo's minified sketch from 2.93 kB to 2.43 kB.

This PR is both a suggestion and the implementation of the suggestion, feel free to use or discard it!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant