Skip to content

Commit 47eb503

Browse files
committed
Add documentation about RNG sources
1 parent e1285ee commit 47eb503

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

docs/guides/rng.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
layout: page
3+
title: RNG sources
4+
permalink: /rng/
5+
---
6+
7+
This page list possible sources that games may use for their Random Number Generator (RNG), and which options control them in libTAS.
8+
9+
* TOC
10+
{:toc}
11+
12+
## Sources
13+
14+
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 provide fixed values for others.
15+
16+
For more information about these different sources, see [the Tech details page](how).
17+
18+
### Configurable
19+
20+
* System time: can be configured on the main window
21+
22+
### Currently not configurable
23+
24+
* reading `/proc/cputime`
25+
* using the current process pid
26+
* reading `/dev/urandom`

docs/help.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ get help from the [Discord server](https://discord.gg/3MBVAzU).
1212
* [Lua usage and functions](../guides/lua)
1313
* [Moviefile format](../guides/format)
1414
* [Tech details](../guides/how)
15+
* [Sources of randomness](../guides/rng)

0 commit comments

Comments
 (0)