Home | History | Annotate | Download | only in deps
      1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #ifndef GOOGLE_CACHEINVALIDATION_DEPS_RANDOM_H_
      6 #define GOOGLE_CACHEINVALIDATION_DEPS_RANDOM_H_
      7 
      8 #include "base/rand_util.h"
      9 
     10 namespace invalidation {
     11 
     12 class Random {
     13  public:
     14   // We don't actually use the seed.
     15   explicit Random(int64 seed) {}
     16 
     17   virtual ~Random() {}
     18 
     19   // Returns a pseudorandom value between(inclusive) and(exclusive).
     20   virtual double RandDouble();
     21 
     22   virtual uint64 RandUint64();
     23 };
     24 
     25 }  // namespace invalidation
     26 
     27 #endif  // GOOGLE_CACHEINVALIDATION_DEPS_RANDOM_H_
     28