aboutsummaryrefslogtreecommitdiff
path: root/system/include/emscripten.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-06-12 17:56:40 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-06-12 17:56:40 -0700
commitf1c4dae2cb1a404a7d6925fa6c719e846f0fd938 (patch)
tree9e30c5b044149e6a4304553cbad3ae7adbedfc82 /system/include/emscripten.h
parent4bb5c641d3eedfc1d2e922cdd7eacee7cc03d317 (diff)
emscripten_random
Diffstat (limited to 'system/include/emscripten.h')
-rw-r--r--system/include/emscripten.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/system/include/emscripten.h b/system/include/emscripten.h
index 4da31ec3..70524835 100644
--- a/system/include/emscripten.h
+++ b/system/include/emscripten.h
@@ -80,6 +80,11 @@ void emscripten_set_canvas_size(int width, int height);
float emscripten_get_now();
/*
+ * Simple random number generation in [0, 1), maps to Math.random().
+ */
+float emscripten_random();
+
+/*
* This macro-looking function will cause Emscripten to
* generate a comment in the generated code.
* XXX This is deprecated for now, because it requires us to