]> Creatis software - bbtk.git/commitdiff
#2745 BBTK Bug New Normal Not compiling windows stdRandomString 1. time function...
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Sat, 7 Nov 2015 17:57:21 +0000 (18:57 +0100)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Sat, 7 Nov 2015 18:02:09 +0000 (19:02 +0100)
packages/std/src/bbstdRandomString.cxx

index c9d9ac389d99430b5bb4e5e15ffdb73105fbbcfc..733617e04933bd0f57edc7dbfe10f2822d177bbd 100644 (file)
@@ -3,6 +3,8 @@
 //===== 
 #include "bbstdRandomString.h"
 #include "bbstdPackage.h"
+#include "time.h"
+
 namespace bbstd
 {
 
@@ -19,11 +21,11 @@ static const char alphanum[] =
 "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
 "abcdefghijklmnopqrstuvwxyz";
 
-
+/*
 char genRandom()
 {
 }
-
+*/
 
 void RandomString::Process()
 {
@@ -43,7 +45,7 @@ void RandomString::Process()
 //    std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
 
     int stringLength = sizeof(alphanum) - 1;
-    srand(time(0));
+    srand(time(NULL));
     std::string STR;
     for(unsigned int i = 0; i < 8; ++i)
     {