diff --git a/pyclustering/cluster/tests/syncnet_tests.py b/pyclustering/cluster/tests/syncnet_tests.py
index <HASH>..<HASH> 100644
--- a/pyclustering/cluster/tests/syncnet_tests.py
+++ b/pyclustering/cluster/tests/syncnet_tests.py
@@ -45,7 +45,7 @@ class Test(unittest.TestCase):
         result_testing = False;

         

         # If phases crosses each other because of random part of the network then we should try again.

-        for attempt in range(0, 4, 1):

+        for _ in range(0, 20, 1):

             sample = read_sample(file);

             network = syncnet(sample, radius, connection, initial, conn_weigh_flag, ccore_flag);

             analyser = network.process(order, solver, storage_flag);

diff --git a/pyclustering/nnet/sync.py b/pyclustering/nnet/sync.py
index <HASH>..<HASH> 100755
--- a/pyclustering/nnet/sync.py
+++ b/pyclustering/nnet/sync.py
@@ -421,7 +421,8 @@ class sync_network(network):
             self._phases = list();

             self._freq = list();

             

-            for index in range(0, num_osc, 1):    

+            random.seed();

+            for index in range(0, num_osc, 1):

                 if (initial_phases == initial_type.RANDOM_GAUSSIAN):

                     self._phases.append(random.random() * pi);
[pyclustering.nnet.sync] Unit-test stability improvement.