about summary refs log tree commit diff
path: root/src/rt/rust_kernel.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-02-06 21:04:37 -0800
committerbors <bors@rust-lang.org>2013-02-06 21:04:37 -0800
commit2df473dc6942cd509e1e1763417d93c459b536cd (patch)
tree3f5ffed20d1990a78c6323d34e3159ceb94f32b1 /src/rt/rust_kernel.cpp
parentf13ea4121eb8997ecdbdd616443267e56efe678b (diff)
parentabd29e5eadb46ec7d7126fa0438c1c52c4ace00f (diff)
downloadrust-2df473dc6942cd509e1e1763417d93c459b536cd.tar.gz
rust-2df473dc6942cd509e1e1763417d93c459b536cd.zip
auto merge of #4801 : z0w0/rust/randomtrait, r=graydon
Also adds Rng::gen() for generically generating any type that implements the Rand trait. There's no way to generate things with a length (for e.g. strings or vectors), because I can't think of an elegant way to do that. Maybe have a RandLen trait that inherits Rand?

This can be used for a quickcheck mechanism I'm working on.
Diffstat (limited to 'src/rt/rust_kernel.cpp')
0 files changed, 0 insertions, 0 deletions