[Uml-devel] branches/KDE/3.5/kdesdk/umbrello/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Sat Nov 18 08:23:11 UTC 2006


SVN commit 605773 by okellogg:

gen(): A little math shows that a much shorter length is still good enough.

 M  +2 -2      uniqueid.cpp  


--- branches/KDE/3.5/kdesdk/umbrello/umbrello/uniqueid.cpp #605772:605773
@@ -23,8 +23,8 @@
 Uml::IDType m_uniqueID;
 
 Uml::IDType gen() {
-    static char buf[40];
-    int length = 30;
+    static char buf[20];
+    int length = 12;
     int i = 0;
     // Source: KDE4 kdelibs/kdecore/krandom.cpp KRandom::randomString()
     while (length--) {




More information about the umbrello-devel mailing list