Skip to content

Commit 4089d85

Browse files
crpto reverted
1 parent ef5665d commit 4089d85

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

src/frontend/package-lock.json

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/frontend/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
"@types/react": "^18.3.23",
1616
"@types/react-dom": "^18.3.7",
1717
"axios": "^1.9.0",
18-
"crypto-js": "^4.2.0",
1918
"react": "^18.3.1",
2019
"react-dom": "^18.3.1",
2120
"react-markdown": "^10.1.0",

src/frontend/src/services/TaskService.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { Task } from "../models/taskList";
33
import { apiService } from "../api/apiService";
44
import { InputTask, InputTaskResponse } from "../models/inputTask";
55
import { formatDate } from "@/utils/utils";
6-
import * as cr from "crypto-js/core";
76

87
/**
98
* TaskService - Service for handling task-related operations and transformations
@@ -99,8 +98,8 @@ export class TaskService {
9998
*/
10099
static generateSessionId(): string {
101100
const timestamp = new Date().getTime();
102-
const randomBytes = cr.randomBytes(4).toString("hex");
103-
return `sid_${timestamp}_${randomBytes}`;
101+
const random = Math.floor(Math.random() * 10000);
102+
return `sid_${timestamp}_${random}`;
104103
}
105104
/**
106105
* Split subtask action into description and function/details parts

0 commit comments

Comments
 (0)