/* * Copyright 2006 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkRandom_DEFINED #define SkRandom_DEFINED #include "include/private/base/SkAssert.h" #include "include/private/base/SkFixed.h" #include "src/base/SkFloatBits.h" #include <cstdint> SkScalar; /** \class SkRandom Utility class that implements pseudo random 32bit numbers using Marsaglia's multiply-with-carry "mother of all" algorithm. Unlike rand(), this class holds its own state, so that multiple instances can be used with no side-effects. Has a large period and all bits are well-randomized. */ class SkRandom { … }; #endif