Files
sdk/runtime/lib
lrn@google.com d63af4cdc8 Add more complex mixing of random seed.
This changes the sequences generated by Random for a given seed,
since the internal state will not be the same as for the unmixed
seed.
It is consistent between VM and dart2js.

The provided integer seed is hashed as follows:
   uint64 hash = 0;
   while (seed > 0) {
      hash = hash * 1037 + mix64((int64)seed);
      seed >>= 64;
   }
where mix64 mixes the bits of a 64-bit value.
The hash is used to initialize the random generator's internal state.

R=floitsch@google.com, iposva@google.com

Review URL: https://codereview.chromium.org//156533002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32412 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-07 08:42:43 +00:00
..
2013-10-03 00:15:14 +00:00
2013-10-01 18:48:37 +00:00
2013-12-13 12:10:23 +00:00
2014-01-24 22:00:04 +00:00
2013-10-03 00:15:14 +00:00
2013-12-19 10:40:53 +00:00
2013-12-13 12:10:23 +00:00
2014-02-04 09:23:38 +00:00
2014-01-29 18:40:12 +00:00
2013-09-20 15:54:10 +00:00
2014-01-24 22:00:04 +00:00
2013-09-25 13:52:15 +00:00