Id generator strategy

Hello,
What do you think of something like that?