Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/04/17 17:19:35 (7 years ago)
Author:
gkronber
Message:

#2520: changed all usages of StorableClass to use StorableType with an auto-generated GUID (did not add StorableType to other type definitions yet)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PersistenceReintegration/HeuristicLab.Random/3.3/FastRandom.cs

    r8928 r14927  
    22using HeuristicLab.Common;
    33using HeuristicLab.Core;
    4 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     4using HeuristicLab.Persistence;
    55
    66namespace HeuristicLab.Random {
     
    4343  ///   
    4444  /// </summary>
    45   [StorableClass]
     45  [StorableType("1a0cccd9-9e4e-4788-ac31-b436f6eb1391")]
    4646  public sealed class FastRandom : Item, IRandom {
    4747    // The +1 ensures NextDouble doesn't generate 1.0
     
    214214      int i = 0;
    215215      uint t;
    216       for (int bound = buffer.Length - 3; i < bound; ) {
     216      for (int bound = buffer.Length - 3; i < bound;) {
    217217        // Generate 4 bytes.
    218218        // Increased performance is achieved by generating 4 random bytes per loop.
Note: See TracChangeset for help on using the changeset viewer.