about summary refs log tree commit diff
path: root/src/libcore/rand.rs
AgeCommit message (Collapse)AuthorLines
2013-01-10librustc: Make all external functions unsafe. r=tjcPatrick Walton-12/+26
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-1/+3
module scope. r=tjc
2013-01-08Revert "librustc: Make unqualified identifier searches terminate at the ↵Patrick Walton-3/+1
nearest module scope. r=tjc" This reverts commit a8d37af2473da79be704c9ce2374f278c47177b6.
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-1/+3
module scope. r=tjc
2012-12-27librustc: Fix the test runner, the condition system, and core test. rs=bustagePatrick Walton-0/+3
2012-12-27librustc: Terminate name searches at the nearest module scope for paths that ↵Patrick Walton-0/+8
contain at least two components. r=graydon
2012-12-23core: Mark some functions as pureChris Peterson-2/+2
2012-12-03Update license, add license boilerplate to most files. Remainder will follow.Graydon Hoare-0/+10
2012-10-04Forbid deprecated modes again in coreTim Chevalier-2/+2
Sadly, there's only one file that requires deprecated modes (stackwalk)... So, forbid them everywhere else.
2012-10-02core::rand - adding rand::random(), a shortcut to generate a uint with ↵Daniel Patterson-0/+13
task-local rng
2012-10-02libstd: Switch off legacy modes in both core and std.Patrick Walton-2/+2
2012-10-02core::rand - adding test for task_rng()Daniel Patterson-0/+8
2012-10-02core::rand - adding task local lazily initialized rng, as per #3439Daniel Patterson-0/+27
2012-09-27Finish de-exporting path, rand, run, sys. Part of #3583.Graydon Hoare-1/+0
2012-09-27Demode randTim Chevalier-8/+12
2012-09-26Demode vec::push (and convert to method)Niko Matsakis-1/+1
2012-09-26libcore: De-export dvec, rand, run, and sysPatrick Walton-30/+25
2012-09-21Install new pub/priv/export rules as defaults, old rules accessible under ↵Graydon Hoare-0/+2
#[legacy_exports];
2012-09-20core: Move 'unreachable' to util. Improve docsBrian Anderson-1/+1
2012-09-10Make all remaining moves explicit in libcoreTim Chevalier-3/+3
2012-09-07Convert all kind bounds to camel case. Remove send, owned keywords.Brian Anderson-6/+6
2012-09-07Remove 'let' syntax for struct fieldsBrian Anderson-1/+1
2012-09-04core: Remove struct ctorsBrian Anderson-1/+6
2012-08-29rustc: Make `<` and `=` into traitsPatrick Walton-2/+4
2012-08-27make rand code use slicesNiko Matsakis-13/+13
2012-08-27libcore: Replace a bunch of "== None" with ".is_none()".Patrick Walton-2/+2
Generally, "== None" calls into the shape glue, and it's also more useful.
2012-08-27Camel case various core constructorsBrian Anderson-16/+16
2012-08-26Camel case the option typeBrian Anderson-13/+13
2012-08-23`m1!{...}` -> `m1!(...)`Paul Stansifer-1/+1
2012-08-17Remove the class keywordBrian Anderson-1/+1
2012-08-14Convert more core types to camel caseBrian Anderson-18/+19
2012-08-08Convert impls to new syntaxBrian Anderson-3/+3
2012-08-01Convert ret to returnBrian Anderson-5/+5
2012-07-31Change remaining "iface" occurrences to "trait"; deprecate "iface"Lindsey Kuper-1/+1
2012-07-30Change syntax extension syntax: `#m[...]` -> `m!{...}`.Paul Stansifer-1/+1
2012-07-16Prevent random floats from occasionally being greater than 1.Jed Davis-4/+4
Previously, gen_f64 could generate numbers as high as 1.0000000002328306 in the case that u3 was 4294967295.0f64 and u2 was nonzero. This change divides the random numbers by 2**32 instead, effectively concatenating their bits as apparently intended. (Bonus fix: const.) The comments are updated to be more specific than "random float"; note that this can still generate 1.0f64 (P = 2**-54) due to rounding.
2012-07-14Move the world over to using the new style string literals and types. Closes ↵Michael Sullivan-4/+4
#2907.
2012-07-06Move string append to libraries. Closes #2710.Michael Sullivan-3/+3
2012-07-04convert doc-attributes to doc-comments using ↵Gareth Daniel Smith-46/+60
./src/etc/sugarise-doc-comments.py (and manually tweaking) - for issue #2498
2012-07-03Switch 'native' to 'extern' (or 'foreign' in some descriptions)Graydon Hoare-1/+1
2012-07-01Convert to new closure syntaxBrian Anderson-5/+5
2012-06-30Eliminate usages of old sugared call syntaxBrian Anderson-1/+1
2012-06-29Switch the compiler over to using ~[] notation instead of []/~. Closes #2759.Michael Sullivan-32/+32
2012-06-27Removed pretty much all the vector+ from core (issue #2719)Eric Holk-1/+1
2012-06-25Make vectors uglier ([]/~). Sorry. Should be temporary. Closes #2725.Michael Sullivan-30/+31
2012-06-21[NEEDS SNAPSHOT] Port remainder of resources to classes in libcoreTim Chevalier-2/+6
2012-06-07Use #[cfg(unix)] and #[cfg(windows)] everywhereBrian Anderson-2/+2
2012-06-06miscellaneous pure annotations and other small changes.Niko Matsakis-1/+1
it seems that, to be truly useful, pure fns really need the ability to modify their parameters. alternatively, we could rewrite the functions that modify their arguments to take/return.
2012-06-05rt: Fix iaac_init using wrong type and not seeding correctlyBrian Anderson-0/+11
This was a result of changing the vector representation to contain a box header.
2012-05-30Add xorshift to core::rand, which gave a 3x speedup for graph generation in ↵Eric Holk-0/+30
the bfs code. Also, remove trailing white space.