mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-26 11:38:37 +00:00
Consolidate random string generation to make Sonar happier (#8675)
* Consolidate random string generation to make Sonar happier * Update snapshots
This commit is contained in:
committed by
GitHub
parent
9f1bffcd34
commit
fe21ec8715
@@ -39,6 +39,7 @@ limitations under the License.
|
||||
|
||||
// the frequency with which we flush to indexeddb
|
||||
import { logger } from "matrix-js-sdk/src/logger";
|
||||
import { randomString } from "matrix-js-sdk/src/randomstring";
|
||||
|
||||
import { getCircularReplacer } from "../utils/JSON";
|
||||
|
||||
@@ -140,7 +141,7 @@ export class IndexedDBLogStore {
|
||||
private indexedDB: IDBFactory,
|
||||
private logger: ConsoleLogger,
|
||||
) {
|
||||
this.id = "instance-" + Math.random() + Date.now();
|
||||
this.id = "instance-" + randomString(16);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user