diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-08-03 17:44:22 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-08-03 17:44:22 -0400 |
| commit | 09204f4ce85f49f0b1108223dc271b4405a3c663 (patch) | |
| tree | 4d3e9087f7bedb61a86f7c9bbed162be2028021c /compile.c | |
| parent | 8357d0299207ddb18772915378e396e92184b0fe (diff) | |
Revert "Fix array:random() to return a random item using correct RNG logic,"
This reverts commit 68b34cf00b8a52509c0bed7b1e66b3e40de0c4f5.
Diffstat (limited to 'compile.c')
| -rw-r--r-- | compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1864,7 +1864,7 @@ CORD compile(env_t *env, ast_t *ast) } else if (streq(call->name, "random")) { CORD self = compile_to_pointer_depth(env, call->self, 0, false); (void)compile_arguments(env, ast, NULL, call->args); - return CORD_all("Array$random_value(", self, ", ", compile_type(item_t), ")"); + return CORD_all("Array$random(", self, ")"); } else if (streq(call->name, "sample")) { CORD self = compile_to_pointer_depth(env, call->self, 0, false); arg_t *arg_spec = new(arg_t, .name="count", .type=Type(IntType, .bits=64), |
