Open icsencho opened 2 years ago
https://github.com/dfinity/motoko-base/blob/master/src/Random.mo
Hash a timestamp before encoding to make it more diverse.
https://github.com/icsencho/Lottery/blob/master/backend/lottery/main.mo#L410
https://github.com/dfinity/motoko-base/blob/master/src/Random.mo