Jump to content
Toggle sidebar
JookWiki
Search
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Navigation
Main page
Recent changes
Random page
All pages
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information
Editing
Multiplayer RNG
(section)
Page
Discussion
English
Read
Edit
Edit source
View history
More
Read
Edit
Edit source
View history
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Concrete specification == Using modern cryptography primitives the protocol works like this. Each player does this: # Agree on which players will be participating in the generation # Generate a random 256-bit number # Hash the number using BLAKE3 # Announce the hash to other players # Wait for other players to announce hashes # Associate the hash with the announcing player # If a player doesn't send a hash, bail out of generation # Announce the random number # Wait for other players to announce random numbers # All players wait for all random numbers to arrive # If a player doesn't send a number, bail out of generation # Associate the number with the announcing player # Hash each player's number using BLAKE3 # Validate that the hash matches the hash sent earlier # If a hash doesn't match, bail out of generation # XOR together all player's numbers to create a final number seed This requires two round trips and results in a number with an entropy of at least 256 bits. This is a large number intended for seeding some per-turn number generator, such as picking multiple cards from a deck or calculating damage.
Summary:
Please note that all contributions to JookWiki are considered to be released under the Creative Commons Zero (Public Domain) (see
JookWiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
To edit this page, please answer the question that appears below (
more info
):
Who owns this wiki?
Cancel
Editing help
(opens in new window)