feat: eslint 적용 및 관련 코드 일괄 수정

This commit is contained in:
2026-01-05 15:46:47 +00:00
parent cb312f02b3
commit c965b1120f
387 changed files with 39808 additions and 38800 deletions
+5 -3
View File
@@ -79,13 +79,16 @@ function calcBitMask(n: bigint): bigint {
// SHA-512 기반 DRBG 구현
export class LiteHashDRBG implements RNG {
protected buffer!: ArrayBuffer;
protected bufferIdx!: number;
protected hq: DataView;
protected hqIdxPos: number;
public constructor(protected seed: BytesLike, protected stateIdx = 0, bufferIdx = 0) {
public constructor(
protected seed: BytesLike,
protected stateIdx = 0,
bufferIdx = 0
) {
if (bufferIdx < 0) {
throw new Error(`bufferIdx ${bufferIdx} < 0`);
}
@@ -215,7 +218,6 @@ export class LiteHashDRBG implements RNG {
}
public nextFloat1(): number {
// eslint-disable-next-line no-constant-condition
while (true) {
const nInt = this._nextInt(maxRngSupportBit + 1);
if (nInt < maxIntMore1) {