- Timestamp:
- 11/24/15 17:08:13 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceOverhaul/HeuristicLab.Random/3.3/FastRandom.cs
r8928 r13368 1 using System;1 using System; 2 2 using HeuristicLab.Common; 3 3 using HeuristicLab.Core; … … 43 43 /// 44 44 /// </summary> 45 [StorableClass ]45 [StorableClass("E74F1CF3-D42B-4AC1-9863-9034C982F319")] 46 46 public sealed class FastRandom : Item, IRandom { 47 47 // The +1 ensures NextDouble doesn't generate 1.0 … … 218 218 // Increased performance is achieved by generating 4 random bytes per loop. 219 219 // Also note that no mask needs to be applied to zero out the higher order bytes before 220 // casting because the cast ignores thos bytes. Thanks to Stefan Trosch �tz for pointing this out.220 // casting because the cast ignores thos bytes. Thanks to Stefan Troschï¿œtz for pointing this out. 221 221 t = (x ^ (x << 11)); 222 222 x = y; y = z; z = w;
Note: See TracChangeset
for help on using the changeset viewer.