Hi

I would like to be able to generate a random ID, which can be used as
a key in a database. I found a md5 implementation in javascript, which
works fine on the client side of my code, but not on the server side.
On the other hand I have also found alot of good examples of random
string generators to use on the server side, but they all use
libraries which are not usable on the client side.

I am only thinking about md5 because it should be fairly unique. I
would like to be able to call the same function on both client and
server side, as I use this in connection with creation of data objects
that should be sent back and forth with GWT RPC, and if they dont have
an ID, I will generate it. This means that I need an algorithm for a
unique random string that can be translated by GWT.

Any suggestions to a solution?

/Morten

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to