aboutsummaryrefslogtreecommitdiffstats
path: root/alv-lib/random.moon
diff options
context:
space:
mode:
Diffstat (limited to 'alv-lib/random.moon')
-rw-r--r--alv-lib/random.moon4
1 files changed, 2 insertions, 2 deletions
diff --git a/alv-lib/random.moon b/alv-lib/random.moon
index c0bf8c5..aad2b25 100644
--- a/alv-lib/random.moon
+++ b/alv-lib/random.moon
@@ -36,7 +36,7 @@ num = Constant.meta
value: class extends Op
new: (...) =>
super ...
- @update_out '~', T.num
+ @setup_out '~', T.num
@state or @gen!
gen: => @state = math.random!
@@ -64,7 +64,7 @@ vec = (n) ->
value: class extends Op
new: (...) =>
super ...
- @update_out '~', typ
+ @setup_out '~', typ
@state or @gen!
gen: => @state = for i=1,n do math.random!