Skip to content

Commit 90c7272

Browse files
authored
Revert "fix: add random number to db id seed" (#286)
1 parent 77d2263 commit 90c7272

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/db/Database.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ export type DatabaseEventsMap = {
4444
}
4545

4646
let callOrder = 0
47-
const seed = Math.random() * 10_000_000;
4847

4948
export class Database<Dictionary extends ModelDictionary> {
5049
public id: string
@@ -73,7 +72,7 @@ export class Database<Dictionary extends ModelDictionary> {
7372
private generateId() {
7473
const { stack } = new Error()
7574
const callFrame = stack?.split('\n')[4]
76-
const salt = `${callOrder}-${callFrame?.trim()}-${Math.round(seed)}`
75+
const salt = `${callOrder}-${callFrame?.trim()}`
7776
return md5(salt)
7877
}
7978

0 commit comments

Comments
 (0)