zsh-workers
 help / color / mirror / code / Atom feed
c18695dd2aec127c1d309715b43a6b6de2720ef9 blob 1710 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
 
COMMENT(!MOD!zsh/random
Some High-quality randomness commands, parameters, and functions.
!MOD!)
The tt(zsh/random) module gets random data from the kernel random pool. If no 
kernel random pool can be found, the module will not load.


subsect(Builtins)

startitem()
findex(getrandom)
cindex(random data, printing, array)
xitem(tt(getrandom) [ tt(-l) var(length) ] [ tt(-r) ] [ tt(-s) var(scalar) ] [tt(-i) ] [ tt(-a) var(array) ] [ tt(-U) var(upper_bound) ] [ tt(-L) var(lower_bound) ]) 
NL()Outputs a random hex-encoded string of var(length) bytes by default. NL()


startitem()
item(tt(-l) var(length)) (
Set the length of the returned random data. Defaults to 8.
)
item(tt(-r)) (
Return the raw bytes rather than a hex-encoded string.
)
item(tt(-s) var(scalar)) (
Save the random data in var(scalar) instead of printing it. Only useful in string mode or when var(length) is 1.
)
item(tt(-a) var(array)) (
Save the random data as an array var(array) of var(length) containing a
decimal representation of the integers LPAR()tt(-i), tt(-L), or tt(-U)RPAR() 
or individual bytes.
)
item(tt(-i)) (
Produces var(length) 32-bit unsigned integers.
)
item(tt(-U) var(upper_bound)) (
Output var(length) integers between var(lower_bound) and var(upper_bound). 
Defaults to 4,294,967,296.
)
item(tt(-L) var(lower_bound)) (
Output var(length) integers between var(lower_bound) and var(upper_bound).
Defaults to 0.
)
enditem()
enditem()

subsect(Parameters)

startitem()
vindex(SRANDOM)
item(tt(SRANDOM)) (
A random positive 32-bit integer between 0 and 4,294,967,295
)
enditem()

subsect(Math Functions)

startitem()
item(tt(zrandom+LPAR()RPAR())) (
Returns a random floating point number between 0 and 1.
)
enditem()
debug log:

solving c18695dd2 ...
found c18695dd2 in https://inbox.vuxu.org/zsh-workers/741b77be-b679-76cc-f8ec-49c9d89323c1@zentaur.org/

applying [1/1] https://inbox.vuxu.org/zsh-workers/741b77be-b679-76cc-f8ec-49c9d89323c1@zentaur.org/
diff --git a/Doc/Zsh/mod_random.yo b/Doc/Zsh/mod_random.yo
new file mode 100644
index 000000000..c18695dd2

1:10: trailing whitespace.
The tt(zsh/random) module gets random data from the kernel random pool. If no 
1:19: trailing whitespace.
xitem(tt(getrandom) [ tt(-l) var(length) ] [ tt(-r) ] [ tt(-s) var(scalar) ] [tt(-i) ] [ tt(-a) var(array) ] [ tt(-U) var(upper_bound) ] [ tt(-L) var(lower_bound) ]) 
1:35: trailing whitespace.
decimal representation of the integers LPAR()tt(-i), tt(-L), or tt(-U)RPAR() 
1:42: trailing whitespace.
Output var(length) integers between var(lower_bound) and var(upper_bound). 
Checking patch Doc/Zsh/mod_random.yo...
Applied patch Doc/Zsh/mod_random.yo cleanly.
warning: 4 lines add whitespace errors.

index at:
100644 c18695dd2aec127c1d309715b43a6b6de2720ef9	Doc/Zsh/mod_random.yo

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).