]> git.codecow.com Git - libnemo.git/commitdiff
Documentation.
authorChris Duncan <chris@zoso.dev>
Mon, 4 Aug 2025 17:34:49 +0000 (10:34 -0700)
committerChris Duncan <chris@zoso.dev>
Mon, 4 Aug 2025 17:34:49 +0000 (10:34 -0700)
src/lib/entropy.ts

index 470b4e725e771cb360fef1e829424d3f0c285b3f..df1e07268f1babc1b0535efe918f765c60b770b2 100644 (file)
@@ -39,7 +39,7 @@ export class Entropy {
        constructor (buffer: ArrayBuffer)
        /**
        * Import existing entropy and validate it.
-       * @param {Uint8Array} bytes - Byte array
+       * @param {Uint8Array<ArrayBuffer>} bytes - Byte array
        */
        constructor (bytes: Uint8Array<ArrayBuffer>)
        /**
@@ -88,7 +88,7 @@ export class Entropy {
        }
 
        /**
-       * Randomizes the bytes, rendering the original values generally inaccessible.
+       * Zeros the bytes and transfers the buffer, rendering the values inaccessible.
        */
        destroy (): void {
                if (!this.#bytes.buffer.detached) {