[Cmake-commits] [cmake-commits] david.cole committed StringTestScript.cmake 1.2 1.3
cmake-commits at cmake.org
cmake-commits at cmake.org
Fri Nov 6 10:07:12 EST 2009
Update of /cvsroot/CMake/CMake/Tests/CMakeTests
In directory public:/mounts/ram/cvs-serv24573/Tests/CMakeTests
Modified Files:
StringTestScript.cmake
Log Message:
Fix issue #9851 - only seed the random number generator on the first call to STRING(RANDOM or if given the new RANDOM_SEED argument. Add test and documentation of new argument.
Index: StringTestScript.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/CMakeTests/StringTestScript.cmake,v
retrieving revision 1.2
retrieving revision 1.3
diff -C 2 -d -r1.2 -r1.3
*** StringTestScript.cmake 3 Oct 2009 16:01:10 -0000 1.2
--- StringTestScript.cmake 6 Nov 2009 15:07:10 -0000 1.3
***************
*** 183,186 ****
--- 183,194 ----
message(STATUS "v='${v}'")
+ # seed values -- 2 same, then 1 different
+ string(RANDOM LENGTH 32 ALPHABET "ACGT" RANDOM_SEED 987654 v)
+ message(STATUS "v='${v}'")
+ string(RANDOM LENGTH 32 ALPHABET "ACGT" RANDOM_SEED 987654 v)
+ message(STATUS "v='${v}'")
+ string(RANDOM LENGTH 32 ALPHABET "ACGT" RANDOM_SEED 876543 v)
+ message(STATUS "v='${v}'")
+
# alphabet of many colors - use all the crazy keyboard characters
string(RANDOM LENGTH 78 ALPHABET "~`!@#$%^&*()_-+={}[]\\|:\\;'\",.<>/?" v)
More information about the Cmake-commits
mailing list