@eckhard
Eckhard, this sounds just like my case, I called maintenance and they also said that it could be the generator. As opposed to your friend's incident, we could say for sure that the humming came from the right engine. Maintenance advised to switch the right generator off, if the sound comes on again, to see if the noise disappears or not (BTW, voltage was normal on both generators in flight).