Fix javascript bindings to correctly pass the random buffer
This commit is contained in:
parent
84d6fbb0dc
commit
f2168004a1
1 changed files with 1 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue