added entropy generation