diff options
| author | Tyge Løvset <[email protected]> | 2020-08-05 22:09:17 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2020-08-05 22:09:17 +0200 |
| commit | 11a54d769b65b31a8a5870157079db193195ea00 (patch) | |
| tree | 418a0aa5baafb20ca25ae36a4f3e37253e1b03e1 /examples/priority.c | |
| parent | a5a575cd4b50666dada38ae9fd897f459071c974 (diff) | |
| download | STC-modified-11a54d769b65b31a8a5870157079db193195ea00.tar.gz STC-modified-11a54d769b65b31a8a5870157079db193195ea00.zip | |
Some API changes in crandom. Added crandom_normal_f64() - normal distributed distribution.
Diffstat (limited to 'examples/priority.c')
| -rw-r--r-- | examples/priority.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/priority.c b/examples/priority.c index 70d89f2a..780e5809 100644 --- a/examples/priority.c +++ b/examples/priority.c @@ -10,7 +10,7 @@ declare_cvec_pqueue(i, >); // min-heap (increasing values) int main() {
crandom_eng32_t pcg = crandom_eng32_init(time(NULL));
- crandom_uniform_i32_t dist = crandom_uniform_i32_init(0, 100000000);
+ crandom_distrib_i32_t dist = crandom_uniform_i32_init(0, 100000000);
cvec_i heap = cvec_init;
// Push ten million random numbers to priority queue
|
