trustgraph / trustgraph-holochain

Apache License 2.0
24 stars 3 forks source link

More random distribution of bucket integers #17

Open harlantwood opened 2 years ago

harlantwood commented 2 years ago

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