]> git.codecow.com Git - nano-pow.git/commitdiff
Eliminate unused argument.
authorChris Duncan <chris@codecow.com>
Sun, 26 Jul 2026 06:16:33 +0000 (23:16 -0700)
committerChris Duncan <chris@codecow.com>
Sun, 26 Jul 2026 06:16:33 +0000 (23:16 -0700)
index.html

index 1c49c2ad4b1531eef994c29a5aa3b06195c74b23..eaa354a8adb80336e1aa97cff524274d2625fd2f 100644 (file)
@@ -41,8 +41,8 @@ SPDX-License-Identifier: GPL-3.0-or-later
                        return gl?.drawingBufferHeight < gl?.drawingBufferWidth ? gl?.drawingBufferHeight : gl?.drawingBufferWidth
                })(new OffscreenCanvas(0, 0))
 
-               function random (length = 32) {
-                       const bytes = crypto.getRandomValues(new Uint8Array(length))
+               function random () {
+                       const bytes = crypto.getRandomValues(new Uint8Array(32))
                        return [...bytes].map(b => b.toString(16).padStart(2, '0')).join('')
                }