add platform module providing implementation of random functions

This commit is contained in:
dranke committed 2021-11-08 23:16:17 +01:00
1 parent 35ff01d7a8
commit 3be4e7b101
5 files changed
+38 -1

No files matched your search

+3
View File
@@ -65,6 +65,9 @@ impl BaseModule {
add_function(&mut functions, &type_map, "pow", &[F32, F32], Some(F32));
add_function(&mut functions, &type_map, "log", &[F32], Some(F32));
add_function(&mut functions, &type_map, "random", &[], Some(I32));
add_function(&mut functions, &type_map, "randomSeed", &[I32], None);
for i in functions.len()..64 {
add_function(
&mut functions,