Post
Topic
Board Project Development
Merits 3 from 2 users
Re: Are dices for generating seed words fair?
by
BlackHatCoiner
on 22/12/2023, 15:40:58 UTC
⭐ Merited by apogio (2) ,vapourminer (1)
how do you convert the 1 to 6 in a dice to 0 and 1 to get a seed word?
There are lots of ways. One simple way is to hash the dice result record, e.g. sha256("262351..."); this one might decrease the entropy by a little (here's why). Another simple way is to count bits according to this array:
Code:
1: 00
2: 01
3: 10
4: 11
5: 0
6: 1

That's faster than counting {1, 2, 3} as 0 and {4, 5, 6} as 1, because it adds 1.66 bits on every dice roll, on average.