// Copyright F3 Authors
// SPDX-License-Identifier: MIT

package util

import (
	"math/rand"
	"time"
)

var (
	letters = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
	random  = rand.New(rand.NewSource(time.Now().UnixNano()))
)

func RandSeq(n int) string {
	b := make([]rune, n)
	for i := range b {
		b[i] = letters[random.Intn(len(letters))]
	}
	return string(b)
}
