Mohsin26 / as3corelib

Automatically exported from code.google.com/p/as3corelib
0 stars 0 forks source link

CreateUUID.createUUID() produces output with '=' sign #67

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. run this code:
var uid:String = CreateUUID.createUUID();
trace(uid);
2. notice that in about 1 in 10 cases the generated uid string contains an
equal sign = as the last character 

What is the expected output? What do you see instead?
A pseudo random string *without* any equal signs.

What version of the product are you using? On what operating system?
OSX, Flexbuilder 3.

Please provide any additional information below.
It almost appears that the line
return nonce.toLowerCase().replace("=", "");
in the CreateUUID is buggy since the last = sign is not replaced. 

Original issue reported on code.google.com by stefan.r...@gmail.com on 27 Aug 2008 at 8:43

GoogleCodeExporter commented 9 years ago

Original comment by mikechambers on 6 Nov 2008 at 9:03

GoogleCodeExporter commented 9 years ago
Which class is this in?

Original comment by mikechambers on 6 Nov 2008 at 9:45

GoogleCodeExporter commented 9 years ago

Original comment by mikechambers on 7 Nov 2008 at 4:22