storj/web/satellite/src/utils/idGenerator.ts
Egon Elbre b4e9d7eefe linting satellite code (#1331)
* ignore coverage folder

* add ident constraint to tslint.json

* npm run lint

* add missing empty line

* fix hasInputError lint
2019-02-20 15:33:56 +02:00

8 lines
204 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);
}