summaryrefslogtreecommitdiffhomepage
path: root/docs/crandom_api.md
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-04-18 23:00:13 +0200
committerTyge Løvset <[email protected]>2022-04-18 23:00:13 +0200
commit1eddea1da0125ddad2f8804fadafd1494c1bb11a (patch)
tree2c38c69cd129edb88dc901a3e1197d177b1a6cf9 /docs/crandom_api.md
parentc2ed81e1d1de503b9264e7c03bcc7087a270df94 (diff)
downloadSTC-modified-1eddea1da0125ddad2f8804fadafd1494c1bb11a.tar.gz
STC-modified-1eddea1da0125ddad2f8804fadafd1494c1bb11a.zip
Renamed stc64_random() => crandom(), stc64_srandom(seed) => csrandom(seed). Kept old names for backward comp.
Diffstat (limited to 'docs/crandom_api.md')
-rw-r--r--docs/crandom_api.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/crandom_api.md b/docs/crandom_api.md
index 896f1c83..41c4a574 100644
--- a/docs/crandom_api.md
+++ b/docs/crandom_api.md
@@ -41,9 +41,9 @@ All crandom definitions and prototypes are available by including a single heade
## Methods
```c
-void stc64_srandom(uint64_t seed); // seed global rng
-uint64_t stc64_random(void); // range [0, 2^64 - 1]
-double stc64_randomf(void); // range [0.0, 1.0)
+void csrandom(uint64_t seed); // seed global stc64 prng
+uint64_t crandom(void); // global stc64_rand(rng)
+double crandomf(void); // global stc64_randf(rng)
stc64_t stc64_init(uint64_t seed);
stc64_t stc64_with_seq(uint64_t seed, uint64_t seq); // init with stream