remove magic number in IdGenerator