fusioninventory / fusioninventory-for-glpi

FusionInventory plugin for GLPI
http://www.FusionInventory.org/
GNU Affero General Public License v3.0
361 stars 148 forks source link

problem with php uniqid() under windows #2093

Open kraglmi opened 7 years ago

kraglmi commented 7 years ago

environment:

I needed a lot of time to figure out why deploy-jobs did´nt work:

all agents got the same uniqid in taskjobstates

I found that php function uniquid() returns the same value if called within 1 second.

My workaround: add usleep(1) after call to uniqid(): task.class.php after line 637 collect.class.php after lines 418, 449, 480

I know this is not a problem within fusioninventory but perhaps you could help the "poor windows people" around by adding usleep(1) after a call to unqid().

==== GLPI & FusionInventory are great tools for our daily work! Michael

trasher commented 7 years ago

What about using "more_entropy" parameter?