diff --git a/alib2algo/src/regexp/generate/RandomRegExpFactory.cpp b/alib2algo/src/regexp/generate/RandomRegExpFactory.cpp
index 74655d82b13b8ad8cea5e2cade98805d621bd96b..9277b4b26f67d59285e2dfcae9382c5f441956dc 100644
--- a/alib2algo/src/regexp/generate/RandomRegExpFactory.cpp
+++ b/alib2algo/src/regexp/generate/RandomRegExpFactory.cpp
@@ -16,8 +16,6 @@ namespace regexp {
 namespace generate {
 
 regexp::UnboundedRegExp RandomRegExpFactory::generateUnboundedRegExp( size_t leafNodes, size_t height, size_t alphabetSize, bool randomizedAlphabet ) {
-	srand( time( NULL ) );
-
 	if(alphabetSize > 26)
 		throw exception::AlibException("Too big alphabet.");
 
diff --git a/alib2algo/src/string/generate/RandomStringFactory.cpp b/alib2algo/src/string/generate/RandomStringFactory.cpp
index a583050aa11abd8bc39caa071a85e8604bb61cd9..b09850e9746c9cd3fda43f7bbe614d35ad7f49ea 100644
--- a/alib2algo/src/string/generate/RandomStringFactory.cpp
+++ b/alib2algo/src/string/generate/RandomStringFactory.cpp
@@ -18,8 +18,6 @@ namespace string {
 namespace generate {
 
 string::LinearString RandomStringFactory::generateLinearString ( size_t size, size_t alphabetSize, bool randomizedAlphabet ) {
-	srand ( time ( NULL ) );
-
 	if ( alphabetSize > 26 )
 		throw exception::AlibException ( "Too big alphabet." );
 
diff --git a/alib2algo/src/string/generate/RandomSubstringFactory.cpp b/alib2algo/src/string/generate/RandomSubstringFactory.cpp
index 69964684be1c23cc78529211f1425aeb119109dc..270a1cf73356d8c52fed40ae38e10c1101852a38 100644
--- a/alib2algo/src/string/generate/RandomSubstringFactory.cpp
+++ b/alib2algo/src/string/generate/RandomSubstringFactory.cpp
@@ -25,8 +25,6 @@ string::LinearString RandomSubstringFactory::generateSubstring ( size_t size, co
 	if ( size > string.getContent ( ).size ( ) )
 		throw exception::AlibException ( "String not long enough" );
 
-	srand ( time ( NULL ) );
-
 	size_t begin = std::random_devices::semirandom ( ) % ( string.getContent ( ).size ( ) - size + 1 );
 
 	std::vector < alphabet::Symbol > data ( string.getContent ( ).begin ( ) + begin, string.getContent ( ).begin ( ) + begin + size );