Onchain Randomness

Onchain randomness on Sui. Use when generating random values in Move smart contracts, working with the Random object (0x8) or RandomGenerator, securing randomness-consuming functions against composition attacks, PTB attacks, or state leakage, implementing commit-reveal patterns, balancing gas across execution paths, or integrating randomness from TypeScript. For general Move security patterns, see the `move-security` skill. For Move language fundamentals, see the `sui-move` skill. For TypeScript SDK patterns, see the `sui-sdks` skill.

MystenLabs af7cb6a 4 files · 19.1 KB Updated

File contents

mystenlabs/skills/tree/main/onchain-randomness commit af7cb6aba1

Frequently asked questions

npx skillmds@latest add mystenlabs/onchain-randomness