adds_random_hex_generator_helper_function

This is so maas can use this to create ids for all its elements 
Of course, the other way to test this is to inject os.urandom, and then check that the default value is indeed os.urandom. But that's annoying, and I'll leave it up to you if you actually want to do that.