From 7ad6b0aa7864bf535c1c81ac4d28b68ca35a3ab2 Mon Sep 17 00:00:00 2001 From: MixtapeXD <46252377+AlecMcCutcheon@users.noreply.github.com> Date: Mon, 23 Nov 2020 21:31:40 -0500 Subject: [PATCH] Update README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e54d82d..cec2ba6 100644 --- a/README.md +++ b/README.md @@ -16,11 +16,13 @@ and a symbol character set size of 32. * GRC's algorithm is: +The characters, length, and staticcurrentlength are all dynamic variables pulled from the current password. length and staticcurrentlength are pulled from the same place but only length is manipulated by the function and staticcurrentlength preserves the current input length so it can be used in the calculation. + ```javascript Var characters = 10; Var length = 5; -Var lengthstatic = 5; +Var staticcurrentlength = 5; function GRC(length) { @@ -30,7 +32,7 @@ function GRC(length) } if (length == 1) { - return Math.pow(characters, lengthstatic); + return Math.pow(characters, staticcurrentlength); } return Math.pow(characters, length - 1) + GRC(length - 1); }