Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
26 changes: 26 additions & 0 deletions docs/guides/rng.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
layout: page
title: RNG sources
permalink: /rng/
---

This page list possible sources that games may use for their Random Number Generator (RNG), and which options control them in libTAS.

* TOC
{:toc}

## Sources

Besides of the [regular in-game sources of randomness](https://tasvideos.org/LuckManipulation), games may get data from other sources to update their PRNG. Some of these sources are configurable, while libTAS provides fixed values for others.

For more information about these different sources, see [the Tech details page](how).

### Configurable

* System time: can be configured on the main window

### Currently not configurable

* reading `/proc/cputime`
* using the current process pid
* reading `/dev/urandom`
1 change: 1 addition & 0 deletions docs/help.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ get help from the [Discord server](https://discord.gg/3MBVAzU).
* [Lua usage and functions](../guides/lua)
* [Moviefile format](../guides/format)
* [Tech details](../guides/how)
* [Sources of randomness](../guides/rng)