Skip to content

Commit 824a74a

Browse files
committed
---
yaml --- r: 137689 b: refs/heads/auto c: d9874bf h: refs/heads/master i: 137687: caa5d4a v: v3
1 parent 8de71d7 commit 824a74a

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: 33700532325627d8127d531dd83cca610681d48f
16+
refs/heads/auto: d9874bfb4079876dabc092c035d99b2d5b7f8a1c
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/librand/chacha.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ use core::prelude::*;
1414

1515
use {Rng, SeedableRng, Rand};
1616

17-
static KEY_WORDS : uint = 8; // 8 words for the 256-bit key
18-
static STATE_WORDS : uint = 16;
19-
static CHACHA_ROUNDS: uint = 20; // Cryptographically secure from 8 upwards as of this writing
17+
const KEY_WORDS : uint = 8; // 8 words for the 256-bit key
18+
const STATE_WORDS : uint = 16;
19+
const CHACHA_ROUNDS: uint = 20; // Cryptographically secure from 8 upwards as of this writing
2020

2121
/// A random number generator that uses the ChaCha20 algorithm [1].
2222
///

branches/auto/src/librand/isaac.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ use core::slice::raw;
1616

1717
use {Rng, SeedableRng, Rand};
1818

19-
static RAND_SIZE_LEN: u32 = 8;
20-
static RAND_SIZE: u32 = 1 << (RAND_SIZE_LEN as uint);
21-
static RAND_SIZE_UINT: uint = 1 << (RAND_SIZE_LEN as uint);
19+
const RAND_SIZE_LEN: u32 = 8;
20+
const RAND_SIZE: u32 = 1 << (RAND_SIZE_LEN as uint);
21+
const RAND_SIZE_UINT: uint = 1 << (RAND_SIZE_LEN as uint);
2222

2323
/// A random number generator that uses the ISAAC algorithm[1].
2424
///
@@ -251,8 +251,8 @@ impl Rand for IsaacRng {
251251
}
252252
}
253253

254-
static RAND_SIZE_64_LEN: uint = 8;
255-
static RAND_SIZE_64: uint = 1 << RAND_SIZE_64_LEN;
254+
const RAND_SIZE_64_LEN: uint = 8;
255+
const RAND_SIZE_64: uint = 1 << RAND_SIZE_64_LEN;
256256

257257
/// A random number generator that uses ISAAC-64[1], the 64-bit
258258
/// variant of the ISAAC algorithm.
@@ -356,8 +356,8 @@ impl Isaac64Rng {
356356
// abbreviations
357357
let mut a = self.a;
358358
let mut b = self.b + self.c;
359-
static MIDPOINT: uint = RAND_SIZE_64 / 2;
360-
static MP_VEC: [(uint, uint), .. 2] = [(0,MIDPOINT), (MIDPOINT, 0)];
359+
const MIDPOINT: uint = RAND_SIZE_64 / 2;
360+
const MP_VEC: [(uint, uint), .. 2] = [(0,MIDPOINT), (MIDPOINT, 0)];
361361
macro_rules! ind (
362362
($x:expr) => {
363363
*self.mem.unsafe_get(($x as uint >> 3) & (RAND_SIZE_64 - 1))

0 commit comments

Comments
 (0)