The modulestores that use this already make sure names are unique themselves, if they're passing in a slug. Because this isn't connected to an actual backend, we aren't really guaranteeing uniqueness anyway (since we might be generating an id that was already generated previously).

This should probably be done w/ content hashing, as is done earlier in the same file, but I think that can wait for the moment.