rename to insecureRandomUUID

This commit is contained in:
softsimon 2024-07-21 23:55:28 +08:00
parent 743c7e8bfb
commit 9c2d010516
No known key found for this signature in database
GPG key ID: 488D7DCFB5A430D7
2 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
import { Component, OnInit, OnDestroy, Output, EventEmitter, Input, ChangeDetectorRef, SimpleChanges, HostListener } from '@angular/core';
import { Subscription, tap, of, catchError, Observable, switchMap } from 'rxjs';
import { ServicesApiServices } from '../../services/services-api.service';
import { nextRoundNumber, simpleRandomUUID } from '../../shared/common.utils';
import { nextRoundNumber, insecureRandomUUID } from '../../shared/common.utils';
import { StateService } from '../../services/state.service';
import { AudioService } from '../../services/audio.service';
import { ETA, EtaService } from '../../services/eta.service';
@ -130,7 +130,7 @@ export class AccelerateCheckout implements OnInit, OnDestroy {
private authService: AuthServiceMempool,
private enterpriseService: EnterpriseService,
) {
this.accelerationUUID = simpleRandomUUID();
this.accelerationUUID = insecureRandomUUID();
}
ngOnInit() {

View file

@ -183,7 +183,7 @@ export function uncompressDeltaChange(delta: MempoolBlockDeltaCompressed): Mempo
};
}
export function simpleRandomUUID(): string {
export function insecureRandomUUID(): string {
const hexDigits = '0123456789abcdef';
const uuidLengths = [8, 4, 4, 4, 12];
let uuid = '';