ChatCrawlersearch across public Telegram Open the app
I

IOST Developer Channel Chat

4 June 2020
2020-06-04×
4 June 2020
O
I was searching for any RNG in iost docs for smart contract and found BigNumber.random method in sources. I checked that in code but it dont works 🤔 Is it really works or it just was left in the code without possibility to use it?
M
If you look at the Dice contract, they give an example for Random Number Generator.
O
i tried to do BigNumber.random() but getting error that it is not a method
I
Can’t have RNG like that on the blockchain.
Since it generates a random seed, and the seed would be different on each node.
The RNG need to generate the same value no matter what node runs it.
I
BigNumber is an open source library that IOST includes, but they disable that method and many others.
Calendar: June 2020
MoTuWeThFrSaSu1235412567893610441161213141521661718192021224231624125426127128293052
Archive by month
Open in Telegram Каталог площадок Искать в ChatCrawler

A snapshot of an open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog