storj/web/satellite/src/utils/idGenerator.ts

8 lines
204 B
TypeScript
Raw Normal View History

2019-01-24 20:15:10 +00:00
// 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);
}