Skip to content

Commit eeeb9ea

Browse files
authored
Merge pull request #1120 from mgeisler/patch-1
Ensure `Array64` is `repr(transparent)`
2 parents f0e01ee + 0f49319 commit eeeb9ea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rand_chacha/src/chacha.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const BUF_BLOCKS: u8 = 4;
2424
// number of 32-bit words per ChaCha block (fixed by algorithm definition)
2525
const BLOCK_WORDS: u8 = 16;
2626

27+
#[repr(transparent)]
2728
pub struct Array64<T>([T; 64]);
2829
impl<T> Default for Array64<T>
2930
where T: Default

0 commit comments

Comments
 (0)