tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

rand_util.h (548B)


      1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
      3 // Copyright (c) 2008 The Chromium Authors. All rights reserved.
      4 // Use of this source code is governed by a BSD-style license that can be
      5 // found in the LICENSE file.
      6 
      7 #ifndef BASE_RAND_UTIL_H_
      8 #define BASE_RAND_UTIL_H_
      9 
     10 #include "base/basictypes.h"
     11 
     12 namespace base {
     13 
     14 // Returns a random number between min and max (inclusive). Thread-safe.
     15 int RandInt(int min, int max);
     16 
     17 }  // namespace base
     18 
     19 #endif  // BASE_RAND_UTIL_H_