code=3D0
"Peter".each_byte{|b| code +=3D b} @ will not generate unique tho


> -----Original Message-----
> From: ohlhaver / gmail.com [mailto:ohlhaver / gmail.com]=20
> Sent: Wednesday, November 12, 2008 6:47 PM
> To: ruby-talk ML
> Subject: Convert text string i.e 'Peter' into integer ID
>=20
> Hello,
>=20
> is there any method to quickly convert a text string such as 'Peter'
> into an integer? (And vice versa?)