From 147e0f0269440fce15d6b88a8a90627f3a3b2df2 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 5 Mar 2025 18:20:54 -0500 Subject: Overhaul of constructors, making it more consistent and correct. Also changed T(), T, T_t, T_s type names to T(), T$$info, T$$type, T$$struct for unambiguity --- stdlib/rng.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stdlib/rng.c') diff --git a/stdlib/rng.c b/stdlib/rng.c index 8e98aa8e..07b2f36c 100644 --- a/stdlib/rng.c +++ b/stdlib/rng.c @@ -251,7 +251,7 @@ public Byte_t RNG$byte(RNG_t rng) public Array_t RNG$bytes(RNG_t rng, Int_t count) { - int64_t n = Int_to_Int64(count, false); + int64_t n = Int64$from_int(count, false); Byte_t *r = GC_MALLOC_ATOMIC(sizeof(Byte_t[n])); random_bytes(rng, r, sizeof(Byte_t[n])); return (Array_t){.data=r, .length=n, .stride=1, .atomic=1}; -- cgit v1.2.3