mirror of
https://github.com/cgzirim/seek-tune.git
synced 2025-12-17 17:04:22 +00:00
17 lines
272 B
Go
17 lines
272 B
Go
package utils
|
|
|
|
import (
|
|
"math/rand"
|
|
"time"
|
|
)
|
|
|
|
func GenerateUniqueID() uint32 {
|
|
rand.Seed(time.Now().UnixNano())
|
|
randomNumber := rand.Uint32()
|
|
|
|
return randomNumber
|
|
}
|
|
|
|
func GenerateSongKey(songTitle, songArtist string) string {
|
|
return songTitle + "---" + songArtist
|
|
}
|