Remove nostr-wasm, add event validation sampling

This commit is contained in:
Jon Staab
2024-11-21 16:03:34 -08:00
parent 2bc575dc21
commit 2fbcfc59a1
5 changed files with 30 additions and 17 deletions
+1 -1
View File
@@ -127,7 +127,7 @@ export const mergeRight = <T extends Record<string, any>>(a: T, b: T) => ({...a,
export const between = ([low, high]: [number, number], n: number) => n > low && n < high
export const randomInt = (min = 0, max = 9) => min + Math.round(Math.random()) * (max - min)
export const randomInt = (min = 0, max = 9) => min + Math.round(Math.random() * (max - min))
export const randomId = (): string => Math.random().toString().slice(2)