diff options
| author | Chris Peterson <cpeterson@mozilla.com> | 2013-02-14 00:37:01 -0800 |
|---|---|---|
| committer | Chris Peterson <cpeterson@mozilla.com> | 2013-02-14 22:30:27 -0800 |
| commit | f4320b6195d2704cf5cb5cb7d23f2b6077a0b34c (patch) | |
| tree | f880b688f0e30f39640ea4e30efe3f606ae64b28 /src/rt/rust_rng.h | |
| parent | c53150638562959e6020bab887a22cf3d13ecaab (diff) | |
| download | rust-f4320b6195d2704cf5cb5cb7d23f2b6077a0b34c.tar.gz rust-f4320b6195d2704cf5cb5cb7d23f2b6077a0b34c.zip | |
move isaac RNG utility functions to new rust_rng.cpp file
Diffstat (limited to 'src/rt/rust_rng.h')
| -rw-r--r-- | src/rt/rust_rng.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/rt/rust_rng.h b/src/rt/rust_rng.h new file mode 100644 index 00000000000..7f61b615b25 --- /dev/null +++ b/src/rt/rust_rng.h @@ -0,0 +1,34 @@ +// Copyright 2012 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +#ifndef RUST_RNG_H +#define RUST_RNG_H + +#include "rand.h" + +class rust_kernel; +struct rust_vec_box; + +// Initialization helpers for ISAAC RNG + +void isaac_seed(rust_kernel* kernel, uint8_t* dest, size_t size); +void isaac_init(rust_kernel *kernel, randctx *rctx, rust_vec_box* user_seed); + +// +// Local Variables: +// mode: C++ +// fill-column: 78; +// indent-tabs-mode: nil +// c-basic-offset: 4 +// buffer-file-coding-system: utf-8-unix +// End: +// + +#endif |
