Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Move u256 to proptest #631

Merged
merged 4 commits into from
Mar 27, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Don't delete TODO
  • Loading branch information
Mason Liang committed Mar 26, 2020
commit ddcf1a632a3c8b187f3e6fa3169b0847d55d2ac8
2 changes: 2 additions & 0 deletions algebra/u256/src/u256.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 3,8 @@ use proptest_derive::Arbitrary;
use std::{cmp::Ordering, prelude::v1::*, u64};

#[derive(PartialEq, Eq, Clone, Default, Hash)]
// TODO: Generate a quasi-random sequence.
// See http://extremelearning.com.au/unreasonable-effectiveness-of-quasirandom-sequences/
#[cfg_attr(any(test, feature = "proptest"), derive(Arbitrary))]
#[cfg_attr(any(test, feature = "proptest"), proptest(no_params))]
pub struct U256([u64; 4]);
Expand Down