Socket has different syntax than I first found via Google (checked official libmemcached docu).
Decrease bytes read from urandom, 64 should be enough.