File size: 218 Bytes
c34c995
 
 
 
 
bc4b939
 
c34c995
bc4b939
c34c995
1
2
3
4
5
6
7
8
9
10
//
// SPDX-FileCopyrightText: Hadad <hadad@linuxmail.org>
// SPDX-License-Identifier: Apache-2.0
//

import { randomBytes } from 'crypto';

export const generateId = () => {
  return randomBytes(32).toString('hex');
};