Move Math.random() into separate method "generateIdentity()" to allow custom id generation strategies by replacing it during store-creation