@wishknish/knishio-client-ts 0.7.8 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1917,7 +1917,7 @@ function generateSecret(seed = null, length = CRYPTO_CONSTANTS.SECRET_LENGTH) {
1917
1917
  if (seed) {
1918
1918
  const sponge = new JsSHA("SHAKE256", "TEXT");
1919
1919
  sponge.update(seed);
1920
- return sponge.getHash("HEX", { outputLen: length * 2 }).toLowerCase();
1920
+ return sponge.getHash("HEX", { outputLen: length * 4 }).toLowerCase();
1921
1921
  } else {
1922
1922
  return randomString(length);
1923
1923
  }