<filename>rlmeta/utils/moolib_utils.py<gh_stars>100-1000
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

import uuid


def generate_random_name() -> str:
    return str(uuid.uuid4())


def expend_name_by_index(name: str, index: int) -> str:
    return name + f"-{index}"

<filename>rlmeta/utils/moolib_utils.py<gh_stars>100-1000
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

import uuid


def generate_random_name() -> str:
    return str(uuid.uuid4())


def expend_name_by_index(name: str, index: int) -> str:
    return name + f"-{index}"

# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree.