File size: 209 Bytes
9ada4bc
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
/**
 * Generate a random ID string to represent a request.
 * @example
 * createRequestId()
 * // "f774b6c9c600f"
 */
export function createRequestId(): string {
  return Math.random().toString(16).slice(2)
}