@mwfiae I know at some point you said the only way of making a truly random number in an SC was to get the random number through an async call to an SC in another shard. Am I remembering correctly?
Certainly if you let your users make sync calls it will be dangerous :)
You could also solve that by executing the random number function in an only_owner endpoint. But that might open up abuse potential on the owner side.
An async call should protect your sc from both yourself as well as predictable random numbers :)
Certainly if you let your users make sync calls it will be dangerous :) You could also solve that by executing the random number function in an only_owner endpoint. But that might open up abuse potential on the owner side. An async call should protect your sc from both yourself as well as predictable random numbers :)