Skip to content

Bugfix for params arg ordering of maxmem and maxmemfrac to match documentation#165

Open
shanewholloway wants to merge 1 commit intobarrysteyn:masterfrom
shanewholloway:master
Open

Bugfix for params arg ordering of maxmem and maxmemfrac to match documentation#165
shanewholloway wants to merge 1 commit intobarrysteyn:masterfrom
shanewholloway:master

Conversation

@shanewholloway
Copy link

Documentation lists the argument order of scrypt.paramsSync and
scrypt.params as maxtime, [maxmem, [max_memfrac]], and the argument
checking in index.js is consistent with this. However, both
src/node-boilerplate/inc/scrypt_params_async.h and
src/node-boilerplate/scrypt_params_sync.cc were accessing the arguments as
[maxtime, max_memfrac, maxmem], and thus returning incorrect results.

…` and `maxmemfrac` to match documentation

Documentation lists the argument order of `scrypt.paramsSync` and
`scrypt.params` as `maxtime, [maxmem, [max_memfrac]]`, and the argument
checking in `index.js` is consistent with this. However, both
`src/node-boilerplate/inc/scrypt_params_async.h` and
`src/node-boilerplate/scrypt_params_sync.cc` were accessing the arguments as
`[maxtime, max_memfrac, maxmem]`, and thus returning incorrect results.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant