Skip to content

Latest commit

 

History

History
7 lines (5 loc) · 536 Bytes

README.md

File metadata and controls

7 lines (5 loc) · 536 Bytes

LotteryVRFv2

In order to generate a strong random salt in computeWinner(string memory salt), Python secrets library will be used as follow:

import secrets
secrets.token_hex(64)

The secrets.token_hex(n) method return a random text string, in hexadecimal. The string has nbytes random bytes, each byte converted to two hex digits. If nbytes is None or not supplied, a reasonable default is used.