The reason not to expose plaintext in a cookie is not simply that it discloses things, but that it creates opportunities for bugs on the serverside.
Virtually everybody reading this thread would be far better served by `head /dev/random | openssl sha1` than by any other scheme.
And yes, the random number does not do anything significant and is probably useless. My reasoning was that it makes the structure of plain-text data slightly less evident from the cookie contents.