diff options
| author | Chris Peterson <cpeterson@mozilla.com> | 2013-02-14 01:11:59 -0800 |
|---|---|---|
| committer | Chris Peterson <cpeterson@mozilla.com> | 2013-02-14 22:33:12 -0800 |
| commit | 9a78dc93db551f325b3b3d90540de6ebe7873b4b (patch) | |
| tree | 33caee6103c8e1f56163da7050369454471a5d6a /src/rt/rust_builtin.cpp | |
| parent | 665e900edeb611a7bfc9b0b911489cb802740945 (diff) | |
| download | rust-9a78dc93db551f325b3b3d90540de6ebe7873b4b.tar.gz rust-9a78dc93db551f325b3b3d90540de6ebe7873b4b.zip | |
reseed rust_rng after generating 32KB
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index a63348a2924..85caf7b2e53 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -173,7 +173,8 @@ rand_new_seeded2(rust_vec_box** seed) { extern "C" CDECL uint32_t rand_next(rust_rng *rng) { - return rng_gen_u32(rng); + rust_task *task = rust_get_current_task(); + return rng_gen_u32(task->kernel, rng); } extern "C" CDECL void |
