"random()" function in secret contract?


#1

Hello every one.
I know The requirement for determinism is the reason we won’t see the “random()” function on ethereum smart contract.
the question is : can we make random numbers in our calculations on enigma secret contract?


Non-deterministic execution (Randomized functionalities)
#2

Not yet as right now it runs only EVM opcodes.

They might be able to extend the EVM by creating the E²VM (EnigmaEVM) or e²Wasm

That would include a pseudo-precompiled “contract” that would include a function def random() public constant returns (uint64)

But under the hood would be generated by the SGX random generator or some MPC.