Skip to content

Commit 03a6c45

Browse files
authored
Don't shadow Math.random() in typescript (#4375)
# Description of Changes This also affects typescript clients, which wasn't the intention. # Expected complexity level and risk 1 # Testing - [x] Typescript client code that uses Math.random is no longer broken.
1 parent e256cef commit 03a6c45

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

  • crates/bindings-typescript/src/server

crates/bindings-typescript/src/server/rng.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@ import { unsafeUniformIntDistribution } from 'pure-rand/distribution/UnsafeUnifo
44
import { xoroshiro128plus } from 'pure-rand/generator/XoroShiro';
55
import type { Timestamp } from '../lib/timestamp';
66

7-
declare global {
8-
interface Math {
9-
random(): never;
10-
}
11-
}
12-
137
type IntArray =
148
| Int8Array
159
| Uint8Array

0 commit comments

Comments
 (0)