chore: add license info for code taken from other repos

This commit is contained in:
Julian Tölle 2024-05-04 22:12:19 +02:00
parent d0729e1cb5
commit 27d4e3240e
6 changed files with 24 additions and 12 deletions

View file

@ -1,3 +1,7 @@
// SPDX-License-Identifier: MIT
// From https://gitlab.com/hetznercloud/fleeting-plugin-hetzner/-/blob/0f60204582289c243599f8ca0f5be4822789131d/internal/utils/random.go
// Copyright (c) 2024 Hetzner Cloud GmbH
package randomid
import (
@ -6,9 +10,6 @@ import (
"fmt"
)
// From https://gitlab.com/hetznercloud/fleeting-plugin-hetzner/-/blob/0f60204582289c243599f8ca0f5be4822789131d/internal/utils/random.go
// Copyright (c) 2024 Hetzner Cloud GmbH
func Generate() (string, error) {
b := make([]byte, 4)
_, err := rand.Read(b)