1
// Copyright 2005-2009 The RE2 Authors. All Rights Reserved.
2
// Use of this source code is governed by a BSD-style
3
// license that can be found in the LICENSE file.
5
// Modified from Google perftools's tcmalloc_unittest.cc.
7
#ifndef RE2_UTIL_RANDOM_H__
8
#define RE2_UTIL_RANDOM_H__
10
#include "util/util.h"
14
// ACM minimal standard random number generator. (re-entrant.)
17
ACMRandom(int32 seed) : seed_(seed) {}
21
void Reset(int32 seed) { seed_ = seed; }
29
#endif // RE2_UTIL_RANDOM_H__