We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77d2263 commit 90c7272Copy full SHA for 90c7272
src/db/Database.ts
@@ -44,7 +44,6 @@ export type DatabaseEventsMap = {
44
}
45
46
let callOrder = 0
47
-const seed = Math.random() * 10_000_000;
48
49
export class Database<Dictionary extends ModelDictionary> {
50
public id: string
@@ -73,7 +72,7 @@ export class Database<Dictionary extends ModelDictionary> {
73
72
private generateId() {
74
const { stack } = new Error()
75
const callFrame = stack?.split('\n')[4]
76
- const salt = `${callOrder}-${callFrame?.trim()}-${Math.round(seed)}`
+ const salt = `${callOrder}-${callFrame?.trim()}`
77
return md5(salt)
78
79
0 commit comments