One question guys, reading the doc for generating random numbers, this specific article, I see there's a note that says as follows:

Please note that this method of generating random numbers isn't safe.

TODO: add link to an article about generating random numbers

My question here, anyone knows about what link is been referred here? Or a "safe" way to generate random numbers?

Jul 19, 2023, 4:52 PM
https://docs.ton.org/develop/smart-contracts/guidelines/random-number-generation
Jul 19, 2023, 4:52 PM
Thanks man👍, you are faster than Flash
Jul 19, 2023, 4:53 PM
Basically, by only doing randomize_lt(), your random generation can be abused by validators.
ton.org/address
Jul 19, 2023, 6:09 PM
Oh. Thanks.
Jul 19, 2023, 6:09 PM

© 2024 Draquery.com All rights reserved.