Skip to content

Add a generic PRNG with built-in entropy#48

Open
bshepherdson wants to merge 1 commit intotechcompliant:masterfrom
bshepherdson:rng
Open

Add a generic PRNG with built-in entropy#48
bshepherdson wants to merge 1 commit intotechcompliant:masterfrom
bshepherdson:rng

Conversation

@bshepherdson
Copy link
Copy Markdown
Collaborator

I keep trying to write games, and finding that I need a source of randomness.

It's possible to write a PRNG in software, and seed it from user input timing or the real-time functionality of the clock device, but that's a pain and not always practical.

This device, which will hopefully become standard issue, solves this problem by providing random unsigned numbers. The device contains an "internal entropy source", which would generally be implemented by using the emulator's host system's own RNG.

If reproducable numbers are important, software can seed the generator with a value of its own.

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