random123

Counter-based Random Number Generators
git clone git://git.meso-star.com/random123.git
Log | Files | Refs | README | LICENSE

commit 78909912ceaf7a8cb0ffc2a0ec4b2f1e62e7e012
parent df602b3e795b630ee2ca714e85a981cbd70aec56
Author: John Salmon <john@thesalmons.org>
Date:   Sun, 21 Feb 2021 15:38:23 -0500

Only deploy gh-pages once (when CC=gcc)

Also fix a couple of markdown/doxygen hiccups and mention the docs at
https://deshawresearch.github.io/random123 in README.md

Diffstat:
M.travis.yml | 6++++--
MGNUmakefile | 1+
MREADME.md | 14++++++++------
3 files changed, 13 insertions(+), 8 deletions(-)

diff --git a/.travis.yml b/.travis.yml @@ -13,13 +13,15 @@ before_install: script: - make check - - make prefix=/tmp install-html + - make html deploy: edge: true # opt into deployment v2 provider: pages:git - local_dir: /tmp/share/doc/Random123/html + local_dir: docs/html token: secure: "p16xEv9Aeny8UkXVLjhL1mIT32PqikuJtidHEUIUE7fHqw7HVfBOLi++o1/FYupQD7E//c4oGTpyswycIjd8z7yGKcyiOgKtkgxc3Gigp+I8sUwFRVp6t21tGMjbrWQKWPQyOsCZv5fl+EwZNNGzzRT8SEQ70ylxotjD9ZOFT3lX3c0btuk7kxA00c4GtX3JWlR9o7kB0KV7Tm1VzdjUJ78tp9GENj1Y9qffLCJb5h+DbR1ESM3hhJMVU9ImzCfX8xohm0hhpbUqXaE6OUy5PPutYoEq97RjsdHy/efKY+jDqZwKNDQpDqwuQZ/+G/cSh+Kypqy7qMVnp4zmapI2VbYjdCHUtvjVr8j2LHL1lD9a66+dunEi9SZjTa7lqLY+3aLFGQSnrCtmd6UMaow++EXOKVTa0CnMU693AD1E+rOetB4JEWNsOsJYaz4yrHhUJMnT/1JYtGfFxOyojgn/eIYwdVCTmZwWf4PMuZ4IaYV/4wniRLmTlHa4E+P2ab3V0AgAdI+l9wEkO/MZBYmjUkHQ3tyO7INJXGBLocatjrvRZOc4qLLpNslCb8/36ZvODERSmlboRB0lGeA3Nn7sW604x9NgN39Gy9sXe8xGYX8UB50AHd7XiPfp6+2AW9uEa8YBQxWB8gwlzwLyWQt8gKPZfzdJOHvY0/feCHGxdrA=" on: branch: main + on: + condition: $CC = gcc diff --git a/GNUmakefile b/GNUmakefile @@ -31,6 +31,7 @@ install-include: # directive, and the @ref directives are *not* commented out. docs/main.md : README.md echo @mainpage Random123: a Library of Counter-Based Random Number Generators > docs/main.md + echo DO NOT EDIT THIS FILE. IT IS GENERATED by ../GNUmakefile >> docs/main.md sed -e 's/<!-- \([^-]*\)-->/\1/g' README.md >> docs/main.md # the html target removes and then recreates docs/html. diff --git a/README.md b/README.md @@ -1,7 +1,7 @@ # Random123: a Library of Counter-Based Random Number Generators <!-- Note that this file is both README.md and the doxygen mainpage. - It should be minimally processed to uncomment the @ref directives + It is minimally processed to uncomment the @ref directives before doxygen is run on it. --> The Random123 library is a collection of counter-based random @@ -36,7 +36,9 @@ ranges of single or double precision floating point numbers. The Random123 library was written by John Salmon and Mark Moraes. It is available at <a href="https://github.com/DEShawResearch/random123"> -https://github.com/DEShawResearch/random123</a>. +https://github.com/DEShawResearch/random123</a> with documentation at +<a href="https://deshawresearch.github.io/random123"> +https://deshawresearch.github.io/random123</a>. Archived releases are also available from <a href="http://deshawresearch.com/resources_random123.html"> @@ -78,7 +80,7 @@ typedefs) begin either with `r123` or with one of the RNG family names, e.g., `threefry`, `philox`, `ars`, `aesni`. The RNG functions themselves have names like `philox4x32`. C++ class names are capitalized, e.g., `Threefry4x32`. -## <!-- \anchor families--> The different families of Random123 generators +## <!-- @anchor families--> The different families of Random123 generators Several families of CBRNGs are available in this version of the library: <ul> @@ -89,7 +91,7 @@ See <!-- @ref--> r123::Threefry2x32, <!-- @ref--> r123::Threefry4x32, <!-- @ref- See <!-- @ref--> r123::Philox2x32, <!-- @ref--> r123::Philox4x32, <!-- @ref--> r123::Philox2x64, <!-- @ref--> r123::Philox4x64. The Nx64 forms are only available on hardware that supports 64-bit multiplication producing a 128-bit result. -<li> <!@ref AESNI--> "AESNI" uses the Advanced Encryption Standard (AES) New Instruction, +<li> <!-- @ref AESNI--> "AESNI" uses the Advanced Encryption Standard (AES) New Instruction, available on certain modern x86 processors (some models of Intel Westmere and Sandy Bridge, and AMD Interlagos, as of 2011). AESNI CBRNGs can operate on four 32bit words (internally converting them to the 128bit SSE type needed by the AES-NI instructions, or on a single m128i "word", @@ -250,14 +252,14 @@ the Random123 package includes two C adapter interfaces to the <a href="http://www.gnu.org/s/gsl/">GNU Scientific Library (GSL).</a> <ul> -<li>The <!--\ref--> GSL_MICRORNG macro allows the application to +<li>The <!-- @ref--> GSL_MICRORNG macro allows the application to define a GSL random number generator. It can be used with GSL random distributions but still provides the application with complete control over the RNG state (it is analogous to the MicroURNG class, in that it uses shorter periods, and is intended to be instantiated in large numbers for a few calls to the random distribution). -<li>The <!--\ref--> GSL_CBRNG macro allows the application to create a GSL +<li>The <!-- @ref--> GSL_CBRNG macro allows the application to create a GSL RNG with a completely conventional interface, sacrificing application control over the internal RNG state. </ul>