On-Chain Primitives
Sui provides native primitives for time and randomness that are accessible directly in Move contracts.
Access On-Chain Time
Access network-based time for your transactions. Sui provides a Clock module to capture near-real time or epoch time in your Sui packages.
On-Chain Randomness
Randomness is a valuable tool to simulate chance on chain, but can also expose flaws in your logic. Understanding the vulnerabilities and accounting for them can mitigate the threat exposure for your smart contracts.