| // | |
| // SPDX-FileCopyrightText: Hadad <hadad@linuxmail.org> | |
| // SPDX-License-Identifier: Apache-2.0 | |
| // | |
| import { randomBytes } from 'crypto'; | |
| export const generateId = () => { | |
| return randomBytes(32).toString('hex'); | |
| }; |
| // | |
| // SPDX-FileCopyrightText: Hadad <hadad@linuxmail.org> | |
| // SPDX-License-Identifier: Apache-2.0 | |
| // | |
| import { randomBytes } from 'crypto'; | |
| export const generateId = () => { | |
| return randomBytes(32).toString('hex'); | |
| }; |