- Timestamp:
- 05/04/17 17:19:35 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceReintegration/HeuristicLab.Random/3.3/FastRandom.cs
r8928 r14927 2 2 using HeuristicLab.Common; 3 3 using HeuristicLab.Core; 4 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;4 using HeuristicLab.Persistence; 5 5 6 6 namespace HeuristicLab.Random { … … 43 43 /// 44 44 /// </summary> 45 [Storable Class]45 [StorableType("1a0cccd9-9e4e-4788-ac31-b436f6eb1391")] 46 46 public sealed class FastRandom : Item, IRandom { 47 47 // The +1 ensures NextDouble doesn't generate 1.0 … … 214 214 int i = 0; 215 215 uint t; 216 for (int bound = buffer.Length - 3; i < bound; 216 for (int bound = buffer.Length - 3; i < bound;) { 217 217 // Generate 4 bytes. 218 218 // Increased performance is achieved by generating 4 random bytes per loop.
Note: See TracChangeset
for help on using the changeset viewer.