diff options
| author | Tyge Løvset <[email protected]> | 2020-12-14 23:00:15 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2020-12-14 23:00:15 +0100 |
| commit | a51861d02f9d8ed8c69fd243de18960307b0fd63 (patch) | |
| tree | 0684859662ced33942942045652f45f65a07ee35 /docs/cpqueue_api.md | |
| parent | f08c1bf0fdf00039f9431677a4038c03696a5e01 (diff) | |
| download | STC-modified-a51861d02f9d8ed8c69fd243de18960307b0fd63.tar.gz STC-modified-a51861d02f9d8ed8c69fd243de18960307b0fd63.zip | |
Reworked the crandom.h module. Changed API (sorry!), made uniform distr. unbiased. Removed 32-bit pcg32 PRNG.
Diffstat (limited to 'docs/cpqueue_api.md')
| -rw-r--r-- | docs/cpqueue_api.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/cpqueue_api.md b/docs/cpqueue_api.md index 39569992..1e92277a 100644 --- a/docs/cpqueue_api.md +++ b/docs/cpqueue_api.md @@ -63,13 +63,13 @@ using_cpqueue(i, cvec_i, >); // adaptor type, '>' = min-heap int main() { size_t N = 10000000; - crand_rng64_t rng = crand_rng64_init(1234); - crand_uniform_i64_t dist = crand_uniform_i64_init(0, N * 10); + cstc64_t rng = cstc64_init(1234); + cstc64_uniform_t dist = cstc64_uniform_init(0, N * 10); cpqueue_i heap = cpqueue_i_init(); // Push ten million random numbers to priority queue, plus some negative ones. c_forrange (N) - cpqueue_i_push(&heap, crand_uniform_i64(&rng, &dist)); + cpqueue_i_push(&heap, cstc64_uniform(&rng, &dist)); c_push_items(&heap, cpqueue_i, {-231, -32, -873, -4, -343}); // Extract and display the fifty smallest. |
