Improved random byte generator in user model