storj/web/satellite/src/utils/idGenerator.ts
2019-01-24 15:15:10 -05:00

8 lines
201 B
TypeScript

// Copyright (C) 2019 Storj Labs, Inc.
// See LICENSE for copying information.
// Custom string id generator
export function getId(): string {
return '_' + Math.random().toString(36).substr(2, 9);
}