trustgraph / trustgraph-holochain

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

More random distribution of bucket integers

harlantwood opened this issue · comments

Currently we do int % 10 where int is 0..=255, so we have a very slight weighting toward 0-5.

We could eliminate this by doing something like:

( int.to_float / 25.5 ).to_int 

instead