import crypto from "crypto" ; export interface Uuid { nextUuid ( ) : string ; } export class RandomUuid implements Uuid { public nextUuid ( ) { return crypto . randomBytes ( 16 ) . toString ( "hex" ) ; } }