// TestUint32ForNonUniqueIdOnSameProcessAndServer tests Uint32() serially for any duplicate ids generated
// using same serverID.
TestUint32ForNonUniqueIdOnSameProcessAndServer tests Uint32() serially for any duplicate ids generated
using same serverID.
// TestUint32ForNonUniqueIdOnSameProcessAndServer tests Uint32 () serially for any duplicate ids generated // using same serverID .
func TestUint32ForNonUniqueIdsOnSameProcessAndServer(t *testing.T) {
	t.Parallel()
	var ids []uint32
	for c := 0; c < 100_000; c++ {
		id := Uint32(1, 0, &DefaultUint32Config)
		for _, v := range ids {
			if v == id {
				t.Error("Duplicate Id found id:", id)
				return
			}
		}
		ids = append(ids, id)
	}
}
func TestUint32ForNonUniqueIdsOnSameProcessAndServer ( t * testing . T ) { t . Parallel ( ) var ids [ ] uint32 for c := 0 ; c < 100_000 ; c ++ { id := Uint32 ( 1 , 0 , & DefaultUint32Config ) for _ , v := range ids { if v == id { t . Error ( " " , id ) return } } ids = append ( ids , id ) } }
TestUint32ForNonUniqueIdOnSameProcessAndServer tests Uint32() serially for any duplicate ids generated
using same serverID.
TestUint32ForNonUniqueIdOnSameProcessAndServer tests Uint32 () serially for any duplicate ids generated using same serverID .