diff options
author | tino <ttk448@gmail.com> | 2012-12-06 14:05:11 +0000 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-12-08 02:27:06 +0100 |
commit | 8450a99c744e9005f19173e4df35d65640bcf5c4 (patch) | |
tree | d6f5d194c256f3d3790701a9f423b7e8eb99b3a8 /sc/source/core/inc | |
parent | e9b21193ed395061b155955e5098f69af92b4fc0 (diff) |
fdo#33365 added wrapper for boost random, use that in RAND()
Change-Id: Iafc524d12c76423f74dc16b42595e52fbc5a1e54
Diffstat (limited to 'sc/source/core/inc')
-rw-r--r-- | sc/source/core/inc/random.hxx | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/sc/source/core/inc/random.hxx b/sc/source/core/inc/random.hxx new file mode 100644 index 000000000000..a9f6c813bddd --- /dev/null +++ b/sc/source/core/inc/random.hxx @@ -0,0 +1,29 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef SC_RANDOM_HXX +#define SC_RANDOM_HXX + +namespace sc +{ + +namespace rng +{ + +void seed(int i); // set initial seed (equivalent of libc srand()) + +double uniform(); // uniform distribution in [0,1) + +} // namespace + +} // namespace + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |