// GenTID generates a 16-byte long string
// it returns "N/A" in the extreme case the random string could not be generated
GenTID generates a 16-byte long string
it returns "N/A" in the extreme case the random string could not be generated
// GenTID generates a 16 - byte long string // it returns " N / A " in the extreme case the random string could not be generated
func GenTID() (tid string) {
	buf := make([]byte, 16)
	tid = "N/A"
	if _, err := rand.Read(buf); err == nil {
		tid = base64.RawURLEncoding.EncodeToString(buf)
	}
	return
}
func GenTID ( ) ( tid string ) { buf := make ( [ ] byte , 16 ) tid = " " if _ , err := rand . Read ( buf ) ; err == nil { tid = base64 . RawURLEncoding . EncodeToString ( buf ) } return }
GenTID generates a 16-byte long string
it returns "N/A" in the extreme case the random string could not be generated
GenTID generates a 16 - byte long string it returns " N / A " in the extreme case the random string could not be generated