run auto fix lint

This commit is contained in:
Olivier Gagnon
2021-04-29 23:52:56 -04:00
parent 77cb63e36a
commit 3fad505096
183 changed files with 1547 additions and 1546 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ import { getRandomInt } from "./getRandomInt";
*/
export function getRandomByte(max: number) {
// Technically 2^8 is 256, but the values are 0-255, not 1-256.
const byteMaximum: number = 255;
const byteMaximum = 255;
const upper: number = Math.max(Math.min(max, byteMaximum), 0);
return getRandomInt(0, upper);