Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/lib/e2b-service.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import * as crypto from 'crypto';
import { Sandbox } from '@e2b/code-interpreter';

export interface ExecutionResult {
Expand Down Expand Up @@ -151,7 +152,7 @@ class E2BService {

const now = new Date();
const session: SandboxSession = {
id: `session_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`,
id: `session_${Date.now()}_${crypto.randomBytes(9).toString('hex')}`,
sandbox,
createdAt: now,
lastUsed: now,
Expand Down
Loading