Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Commit

Permalink
Modified README.md to show changes of seeding
Browse files Browse the repository at this point in the history
  • Loading branch information
jj1bdx committed May 25, 2012
1 parent 12b0c29 commit b15bf08
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# sfmt-erlang: SIMD-oriented Fast Mersenne Twister (SFMT) for Erlang

* Version 0.8.0_RELEASE 3-MAY-2012
* Version 0.8.1_RELEASE 25-MAY-2012
* Edited and written by Kenji Rikitake (Kyoto University)
* Email contact: <kenji.rikitake@acm.org>

Expand All @@ -26,6 +26,17 @@ See <http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/index.html>
* new module sfmt86243 added (from 0.6.1_BETA)
* Pure SFMT module now added as working code by request (from 0.8.0_RELEASE)

## Note: seeding algorithm changed for `seed(integer())` functions

* The old `seed/1` function calls `int_gen_rand/1` (up to 0.8.0_RELEASE)
* The internal state generated by `int_gen_rand/1` is predictable,
especially when the value of the 1st element of the state list is
very close to the given seed value.
(Michael Gebetsroither discovered this behavior)
* The new `seed/1` function calls `init_by_list32/1` (from 0.8.1_RELEASE)
and the seed is given as `[integer()]`,
to reduce predictability of the 1st element of the state list.

## Supported SFMT PRNG periods

* sfmt607: (2^607 - 1)
Expand Down Expand Up @@ -130,7 +141,7 @@ which will be automatically fetched under the directory `support/`.
* Richard O'Keefe
* Yurii Rashkovskii
* Kostis Sagonas (for code verification by dialyzer)
* Michael Gebetsroither (for ths suggestion of Pure Erlang code workable)
* Michael Gebetsroither (for the suggestion of Pure Erlang code workable)

## ACKNOWLEDGMENTS

Expand Down

0 comments on commit b15bf08

Please sign in to comment.