refactor(Generators) changed way to generate RID, ID