The RNG Problem on Chain Is Real: Here's How Oasis Tackles It Differently
If you've ever tried to build anything onchain that needs randomness, real randomness, not blockhash spaghetti you know how painful it is. Gaming? Lotteries? NFT minting? Even something as basic as randomized token IDs gets tricky fast. Because here’s the truth: blockchains aren't built for randomness. They're built for determinism and consensus. And those two don’t exactly play nice with entropy. So what do most devs do? They hack around it: Use blockhashes (predictable) Do commit-reveal (delay-heavy, gameable) Call Chainlink VRF (offchain dependency, gas cost, complexity) But then I ran into something different: Oasis’s take on randomness. Not just how they do it (with TEEs and VRFs), but where they integrated it—deep into the Sapphire confidential EVM runtime. Let’s break it down.

If you've ever tried to build anything onchain that needs randomness, real randomness, not blockhash spaghetti you know how painful it is.
Gaming? Lotteries? NFT minting? Even something as basic as randomized token IDs gets tricky fast. Because here’s the truth: blockchains aren't built for randomness. They're built for determinism and consensus. And those two don’t exactly play nice with entropy.
So what do most devs do? They hack around it:
- Use blockhashes (predictable)
- Do commit-reveal (delay-heavy, gameable)
- Call Chainlink VRF (offchain dependency, gas cost, complexity)
But then I ran into something different: Oasis’s take on randomness. Not just how they do it (with TEEs and VRFs), but where they integrated it—deep into the Sapphire confidential EVM runtime.
Let’s break it down.