diff --git a/README.md b/README.md index 18c7415..8e6a461 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,11 @@ A simple [`UniformRandomBitGenerator`](http://en.cppreference.com/w/cpp/concept/UniformRandomBitGenerator) wrapper for the [xoroshiro128+](http://xoroshiro.di.unimi.it/) PRNG. -Features +## Features - Compatible with the C++11 `` library. + The engine can be plugged into any random number distribution ([`http://en.cppreference.com/w/cpp/concept/RandomNumberDistributionin`](http://en.cppreference.com/w/cpp/concept/RandomNumberDistribution)) in order to obtain a random number. - Any uniform random bit generator (`UniformRandomBitGenerator`) may be plugged into any random number distribution in order to obtain a random number. - -- Directly derived from the [public-domain C implementations](http://xoroshiro.di.unimi.it). +- Directly derived from the [public-domain C implementations](http://xoroshiro.di.unimi.it/xoroshiro128plus.c). ## Usage @@ -52,6 +51,8 @@ and the output is something like: 10 ********* ``` +([source code](https://github.com/morinim/xoroshiro128p/blob/master/example.cc)) + ## Remarks - The implementation is only partially a C++11 [`RandomNumberEngine`](http://en.cppreference.com/w/cpp/concept/RandomNumberEngine) missing: diff --git a/example.cc b/example.cc index 2e3a712..be0ed48 100644 --- a/example.cc +++ b/example.cc @@ -1,14 +1,3 @@ -/** - * \file - * - * \copyright Copyright (C) 2018 Manlio Morini. - * - * \license - * 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/ - */ - #include #include