Celestium-Labs / Solar-Flares

1 stars 0 forks source link

Confirm how uniformly the random value is generated #3

Open icsencho opened 2 years ago

icsencho commented 2 years ago

https://github.com/dfinity/motoko-base/blob/master/src/Random.mo

icsencho commented 2 years ago

Hash a timestamp before encoding to make it more diverse.

https://github.com/icsencho/Lottery/blob/master/backend/lottery/main.mo#L410