Fix friendlist having a bad gray background

Thanks to toweI for reporting the issue
Fix #767
Rewrite horrible type casting pointer magic with shifts

Why would you generate that random number byte by byte, anyway ?
Merge branch 'master' into debian/unstable
prepare for release

Signed-off-by: Kill Your TV <killyourtv@i2pmail.org>