Skip to content

Commit 78811c6

Browse files
fix(shims): Bind crypto to randomUUID (#40)
* fix(shims): Bind crypto to randomUUID * Create quiet-flies-march.md --------- Co-authored-by: Dominik Kundel <[email protected]>
1 parent be52a88 commit 78811c6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/quiet-flies-march.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@openai/agents-core": patch
3+
---
4+
5+
fix(shims): Bind crypto to randomUUID

packages/agents-core/src/shims/shims-browser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export class BrowserEventEmitter<
6161

6262
export { BrowserEventEmitter as RuntimeEventEmitter };
6363

64-
export const randomUUID = crypto.randomUUID;
64+
export const randomUUID = crypto.randomUUID.bind(crypto);
6565
export const Readable = class Readable {
6666
constructor() {}
6767
pipeTo(

0 commit comments

Comments
 (0)