eos icon indicating copy to clipboard operation
eos copied to clipboard

Will Eos provide a random number generator for contracts?

Open NeverLandFly opened this issue 8 years ago • 2 comments

Current methods used by developers seems to be complicate and vulnerable. For instantce, several gambling games has reported their losses caused by hacker predicting the game results.

NeverLandFly avatar Nov 06 '18 05:11 NeverLandFly

There no real random in EOS blockchain. As every block must execute exactly the same in each node, random number in the smart contract is predictable. However you may generate random number off- chain. Please ask https://eosio.stackexchange.com/ if you have further questions.

taokayan avatar Nov 07 '18 02:11 taokayan

EOS blok zincirinde gerçek bir rastgelelik yoktur. Her bloğun her düğümde tam olarak aynı şekilde çalışması gerektiğinden, akıllı sözleşmedeki rastgele sayı tahmin edilebilir. Ancak zincir dışı rasgele sayı üretebilirsiniz. Başka sorularınız varsa lütfen https://eosio.stackexchange.com/ adresine sorun.

How can I safely include an externally generated number in a smart contract? (i.e. how can I put those numbers inside secretly by preventing users from transacting on bloks.io?)

ranchersland avatar Apr 15 '22 16:04 ranchersland