mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
Release calc version 2.11.0t5
This commit is contained in:
@@ -124,7 +124,7 @@ DETAIL_HELP= abs access acos acosh acot acoth acsc acsch address agd append \
|
||||
pmod polar poly pop popcnt power prevcand prevprime printf prompt \
|
||||
protect ptest push putenv quo quomod rand randbit random randombit \
|
||||
randperm rcin rcmul rcout rcpow rcsq re remove reverse rewind rm root \
|
||||
round rsearch runtime saveval scale scan scanf search sec sech \
|
||||
round rsearch runtime saveval scale scan scanf search sec sech seed \
|
||||
segment select sgn sha sha1 sin sinh size sizeof sort sqrt srand \
|
||||
srandom ssq str strcat strerror strlen strpos strprintf strscan \
|
||||
strscanf substr sum swap system tail tan tanh test time trunc xor
|
||||
|
@@ -25,7 +25,7 @@ LIBRARY
|
||||
none
|
||||
|
||||
SEE ALSO
|
||||
rand, srand, randbit,
|
||||
seed, rand, srand, randbit,
|
||||
isassoc, isatty, isblk, isconfig, isdefined, iserror, iseven, isfile,
|
||||
ishash, isident, isint, islist, ismat, ismult, isnull, isnum, isobj,
|
||||
isobjtype, isodd, isprime, israndom, isreal, isrel,
|
||||
|
@@ -27,7 +27,7 @@ LIBRARY
|
||||
none
|
||||
|
||||
SEE ALSO
|
||||
random, srandom, randombit,
|
||||
seed, random, srandom, randombit,
|
||||
isassoc, isatty, isblk, isconfig, isdefined, iserror, iseven, isfile,
|
||||
ishash, isident, isint, islist, ismat, ismult, isnull, isnum, isobj,
|
||||
isobjtype, isodd, isprime, isrand, isreal, isrel,
|
||||
|
@@ -230,4 +230,4 @@ LIBRARY
|
||||
long irand(long max)
|
||||
|
||||
SEE ALSO
|
||||
srand, randbit, isrand, random, srandom, israndom
|
||||
seed, srand, randbit, isrand, random, srandom, israndom
|
||||
|
@@ -40,4 +40,4 @@ LIBRARY
|
||||
void zrand(long cnt, ZVALUE *res)
|
||||
|
||||
SEE ALSO
|
||||
srand, randbit, isrand, random, srandom, israndom
|
||||
seed, srand, randbit, isrand, random, srandom, israndom
|
||||
|
@@ -154,4 +154,4 @@ LIBRARY
|
||||
long irandom(long max)
|
||||
|
||||
SEE ALSO
|
||||
srand, randbit, isrand, rand, srandom, israndom
|
||||
seed, srand, randbit, isrand, rand, srandom, israndom
|
||||
|
@@ -39,4 +39,4 @@ LIBRARY
|
||||
void zrandom(long cnt, ZVALUE *res)
|
||||
|
||||
SEE ALSO
|
||||
srand, randbit, isrand, rand, srandom, israndom
|
||||
seed, srand, randbit, isrand, rand, srandom, israndom
|
||||
|
52
help/seed
Normal file
52
help/seed
Normal file
@@ -0,0 +1,52 @@
|
||||
NAME
|
||||
seed - return a value that may be used to seed a pseudo-random generator
|
||||
|
||||
SYNOPSIS
|
||||
seed()
|
||||
|
||||
TYPES
|
||||
return integer
|
||||
|
||||
DESCRIPTION
|
||||
Generate a pseudo-random seed based on a collection of system and process
|
||||
information. The seed() builtin function returns a value:
|
||||
|
||||
0 <= seed < 2^64
|
||||
|
||||
IMPORTANT WARNING:
|
||||
|
||||
It should be pointed out that the information collected by seed
|
||||
is almost certainly non-chaotic. This function is likely not
|
||||
suitable for applications (such as cryptographic applications)
|
||||
where the unpredictability of seeds is critical. For such critical
|
||||
applications, lavarand should be used. Seed:
|
||||
|
||||
http://lavarand.sgi.com
|
||||
|
||||
for information about seeding a pseudo-random number generator
|
||||
(such as rand() or random()) with the cryptographic hash of the
|
||||
digitization of chaotic system.
|
||||
|
||||
Given the above warning, this builtin function produces a seed that is
|
||||
suitable for most applications that desire a different pseudo-random
|
||||
sequence each time they are run.
|
||||
|
||||
The return value of this builtin function should NOT be considered
|
||||
a random or pseudo-random value. The return value should be used
|
||||
as an argument to a seed function such as srand() or srandom().
|
||||
|
||||
EXAMPLE
|
||||
> print srand(seed())
|
||||
RAND state
|
||||
|
||||
> print srandom(seed())
|
||||
RAND state
|
||||
|
||||
LIMITS
|
||||
none
|
||||
|
||||
LIBRARY
|
||||
NUMBER *pseudo_seed(void)
|
||||
|
||||
SEE ALSO
|
||||
seed, srand, randbit, isrand, rand, random, srandom, israndom
|
@@ -148,4 +148,4 @@ LIBRARY
|
||||
RAND *zsetrand(RAND *state)
|
||||
|
||||
SEE ALSO
|
||||
srandom, randbit, isrand, random, srandom, israndom
|
||||
seed, srandom, randbit, isrand, random, srandom, israndom
|
||||
|
@@ -337,4 +337,4 @@ LIBRARY
|
||||
RAND *zsetrandom(RAND *state)
|
||||
|
||||
SEE ALSO
|
||||
srand, randbit, isrand, random, srandom, israndom
|
||||
seed, srand, randbit, isrand, random, srandom, israndom
|
||||
|
Reference in New Issue
Block a user