aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--javascript/axolotl_post.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/javascript/axolotl_post.js b/javascript/axolotl_post.js
index 16294fb..570c66f 100644
--- a/javascript/axolotl_post.js
+++ b/javascript/axolotl_post.js
@@ -16,6 +16,7 @@ function random_stack(size) {
var ptr = stack(size);
var array = new Uint8Array(Module['HEAPU8'].buffer, ptr, size);
window.crypto.getRandomValues(array);
+ return ptr;
}
function restore_stack(wrapped) {