summaryrefslogtreecommitdiffhomepage
path: root/examples/priority.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-04-18 23:53:18 +0200
committerTyge Løvset <[email protected]>2022-04-18 23:53:18 +0200
commit58497293d88109624d4798c56e888bcbab7c4285 (patch)
tree670f4f481672635f27363ea2d711a4cbb37618d6 /examples/priority.c
parent1eddea1da0125ddad2f8804fadafd1494c1bb11a (diff)
downloadSTC-modified-58497293d88109624d4798c56e888bcbab7c4285.tar.gz
STC-modified-58497293d88109624d4798c56e888bcbab7c4285.zip
crandom.h: Renamed *_init(..) functions to *_new(..). Old names are kept but deprecated.
Diffstat (limited to 'examples/priority.c')
-rw-r--r--examples/priority.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/priority.c b/examples/priority.c
index 1767dba8..6e033386 100644
--- a/examples/priority.c
+++ b/examples/priority.c
@@ -10,8 +10,8 @@
int main() {
size_t N = 10000000;
- stc64_t rng = stc64_init(time(NULL));
- stc64_uniform_t dist = stc64_uniform_init(0, N * 10);
+ stc64_t rng = stc64_new(time(NULL));
+ stc64_uniform_t dist = stc64_uniform_new(0, N * 10);
c_auto (cpque_i, heap)
{
// Push ten million random numbers to priority queue