You should even consider renaming the method to generateValue as it does not return byte[] anymore.