From: jpr Date: Thu, 20 Oct 2005 07:25:10 +0000 (+0000) Subject: In order to get UID without padding to even-length string, add a '.' before X-Git-Tag: OpenJPEG.Version1.2~303 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=6b05184df64b7698f3ba40ebdf89e5eb978333f2;p=gdcm.git In order to get UID without padding to even-length string, add a '.' before random number. --- diff --git a/src/gdcmUtil.cxx b/src/gdcmUtil.cxx index b1feafb0..01808c81 100644 --- a/src/gdcmUtil.cxx +++ b/src/gdcmUtil.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmUtil.cxx,v $ Language: C++ - Date: $Date: 2005/10/18 08:35:50 $ - Version: $Revision: 1.165 $ + Date: $Date: 2005/10/20 07:25:10 $ + Version: $Revision: 1.166 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -896,7 +896,7 @@ std::string Util::CreateUniqueUID(const std::string &root) append += Util::GDCM_MAC_ADRESS; append += "."; append += Util::GetCurrentDateTime(); - + append += "."; //Also add a mini random number just in case: char tmp[10]; int r = (int) (100.0*rand()/RAND_MAX);