Cosmos
Cosmos copied to clipboard
Guid Implementation
Same as: #942
xD is this still not in it was started in 2017
and it looks like it still have te same issues with the guids been the same in the tests
I think thats a problem with how we seed the random number generators currently. Making the random static should fix the issue.
mmm that a bit more of a hack then a fix
Yeah, the correct fix would be to improve the seeding of the random number generator.
We could try use the TimestampCounter from the CPU as a seed for the RandomImpl. https://github.com/CosmosOS/Cosmos/blob/3600701b876f978ab866e89ee06dffc60ba53a4b/source/Cosmos.Core_Asm/CPUImpl.cs#L46
@MishaTY The issue is that https://github.com/CosmosOS/Cosmos/blob/a1c4011cbfadcec5a8b61fac56d1d1a4de739462/source/Cosmos.System2_Plugs/System/RandomImpl.cs#L30-L33 does not use GenerateGlobalSeed
.