Generating a random alphanumeric string

2001-03-01 Thread Cato, Christopher
Hello, can anyone show me an example or give me a clue about how to generate a random alphanumeric string of lets say 16-32 chars? TomCat is obviously doing it for the session ids, but how would I do the same in a servlet? Regards, Christopher Cato

ODP: Generating a random alphanumeric string

2001-03-01 Thread Herchel Wojciech
see tomcat sources, org.apache.tomcat.util.SessionIdGenerator namely vVolf -Oryginalna wiadomooe- Od: Cato, Christopher [mailto:[EMAIL PROTECTED]] Wysano: 1 marca 2001 15:05 Do: '[EMAIL PROTECTED]' Temat: Generating a random alphanumeric string Hello, can anyone show me

RE: Generating a random alphanumeric string

2001-03-01 Thread Anil
Cato, Here is code that I tried out for generating a user id using the user name I have to pass a string and it returns a 8 digit alpha numeric Hope it helps, Anil public static String getCode(String text){

RE: Generating a random alphanumeric string

2001-03-01 Thread Samson, Lyndon [IT]
nextInt() % maxIndex); resultID += validChars.charAt(rndPos); } return resultID; } } // --- cut --- -Original Message- From: Cato, Christopher [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 01, 2001 2:05 PM To: '[EMAIL PROTECTED]' Subject:

RE: Generating a random alphanumeric string

2001-03-01 Thread Adrian Papari
- From: Cato, Christopher [mailto:[EMAIL PROTECTED]] Sent: 01 March 2001 15:05 To: '[EMAIL PROTECTED]' Subject: Generating a random alphanumeric string Hello, can anyone show me an example or give me a clue about how to generate a random alphanumeric string of lets say 16-32 chars? TomCat is

RE: Generating a random alphanumeric string

2001-03-01 Thread Craig O'Brien
PROTECTED]' Temat: Generating a random alphanumeric string Hello, can anyone show me an example or give me a clue about how to generate a random alphanumeric string of lets say 16-32 chars? TomCat is obviously doing it for the session ids, but how would I do the same in a servlet?