2019-01-24 20:15:10 +00:00
|
|
|
// Copyright (C) 2019 Storj Labs, Inc.
|
2018-12-12 13:44:01 +00:00
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
2020-02-14 15:35:10 +00:00
|
|
|
/**
|
|
|
|
* Custom string id generator.
|
|
|
|
*/
|
2018-12-12 13:44:01 +00:00
|
|
|
export function getId(): string {
|
2019-02-20 13:33:56 +00:00
|
|
|
return '_' + Math.random().toString(36).substr(2, 9);
|
2018-12-12 13:44:01 +00:00
|
|
|
}
|