Skip to content

Update docs wording #1277

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 9, 2025
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/tools/kit/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -377,11 +377,11 @@ function RandomValues() {

#### Notes:

- Randomness is generated using Flow’s **on-chain `revertibleRandom`**, producing pseudorandom values tied to block and transaction execution.
- The value returned for identical calls within the same block will be identical.
- This hook is intended for **non-critical randomness** like randomized UIs, loot crates, and temporary rewards.
- For **critical applications** requiring secure and unpredictable randomness, use a [commit-reveal scheme] on Flow instead.
- Values are **deterministic**: if a transaction fails and retries, the same random value will be regenerated.
* Randomness is generated using Flow’s **on-chain `revertibleRandom`**, producing pseudorandom values tied to block and transaction execution.
* The value returned for identical calls within the same block will be identical.
* This hook is designed for simple use cases that **don’t require a [commit-reveal scheme]**, such as randomized UIs or loot crates.
* For **more advanced use cases** that **do** require a [commit-reveal scheme], Flow provides built-in support for that pattern.
* Values are **deterministic**: if a transaction fails and retries, the same random value will be regenerated.

---

Expand Down