From 1e266fb8af16ea86a7f246460d212386d1aa009b Mon Sep 17 00:00:00 2001 From: Jun-ichi Takimoto Date: Thu, 13 Nov 2025 00:31:47 +0900 Subject: 53964 (+ tiny change): improve the description of parameter RANDOM --- ChangeLog | 5 +++++ Doc/Zsh/params.yo | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index c5fabdea0..d63dbf75a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2025-11-13 Jun-ichi Takimoto + + * 53964 (+ tiny change): Doc/Zsh/params.yo: mention zsh/random + module in the description of the parameter RANDOM + 2025-11-12 Oliver Kiddle * Heon Jeong: 54008: Src/Zle/compmatch.c: infinite loop running diff --git a/Doc/Zsh/params.yo b/Doc/Zsh/params.yo index 34825deae..dcd37aa6e 100644 --- a/Doc/Zsh/params.yo +++ b/Doc/Zsh/params.yo @@ -926,6 +926,12 @@ The values of tt(RANDOM) form an intentionally-repeatable pseudo-random sequence; subshells that reference tt(RANDOM) will result in identical pseudo-random values unless the value of tt(RANDOM) is referenced or seeded in the parent shell in between subshell invocations. + +tt(RANDOM) uses the system's library function manref(rand)(3). +If higher degree of randomness is required, please consider using +the autoloadable parameter tt(SRANDOM) from +ifzman(the tt(zsh/random) module (see zmanref(zshmodules)))\ +ifnzman(noderef(The zsh/random Module)). ) vindex(SECONDS) item(tt(SECONDS) )( -- cgit v1.2.3-70-g09d2