-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect hash results for scrypt when WASM is disabled #310
Comments
Do you get the same output every time? With
So the function call probably doesn't complete and what I get is uninitialized data. |
The javascript and wasm versions use the same code and are expected to behave the same way. Maybe bug in emscripten? The binding for that function has been removed until someone can possibly figure it out. |
Ah, interesting I do indeed have non-deterministic output. Here are some runs:
I do not see the error message though. |
The reason seems to be the values used for With higher value, we get the correct results. Their build script enables But that doesn't seem to work. Maybe this is a WebAssembly-only thing and doesn't work in JavaScript. Using a large value for So maybe we should revert to the old (before |
Hi,
scrypt seems to deliver incorrect results when WASM is disabled. To reproduce, here is the test code:
When run with WASM enabled:
With WASM disabled:
The text was updated successfully, but these errors were encountered: