diff options
| author | Roy Frostig <[email protected]> | 2010-07-25 21:45:09 -0700 |
|---|---|---|
| committer | Roy Frostig <[email protected]> | 2010-07-25 21:45:09 -0700 |
| commit | 5b6e714d05a0c96ade618256a67a9cb7f337f196 (patch) | |
| tree | 45406973ea3c0ffb1a9e070588f4ca5fc8c7744c /src/lib/std.rc | |
| parent | Don't write to NULL after calling C natives returning void. (diff) | |
| download | rust-5b6e714d05a0c96ade618256a67a9cb7f337f196.tar.xz rust-5b6e714d05a0c96ade618256a67a9cb7f337f196.zip | |
Expose an RNG (the one used by our runtime) to Rust via std.
Diffstat (limited to 'src/lib/std.rc')
| -rw-r--r-- | src/lib/std.rc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/std.rc b/src/lib/std.rc index dfc404ec..8c956691 100644 --- a/src/lib/std.rc +++ b/src/lib/std.rc @@ -28,6 +28,7 @@ auth _vec = unsafe; auth _int.next_power_of_two = unsafe; auth map.mk_hashmap = unsafe; +auth rand.mk_rng = unsafe; // Target-OS module. @@ -43,3 +44,4 @@ alt (target_os) { mod map; mod deque; +mod rand; |