Skip to content

Commit b17312d

Browse files
Fix formatting
1 parent 63784e2 commit b17312d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { PRNG } from "./types.js";
33

44
export function randomChar(prng: PRNG): string {
55
// Currently PRNGs generate fractions from 0 to _less than_ 1, so no "%" is necessary.
6-
// However, just in case a future PRNG can generate 1,
6+
// However, just in case a future PRNG can generate 1,
77
// we are applying "% ENCODING LEN" to wrap back to the first character
8-
const randomPosition = Math.floor(prng() * ENCODING_LEN) % ENCODING_LEN;
8+
const randomPosition = Math.floor(prng() * ENCODING_LEN) % ENCODING_LEN;
99
return ENCODING.charAt(randomPosition);
1010
}
1111

0 commit comments

Comments
 (0)