Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seeded Random Shuffle #1110

Merged
merged 4 commits into from
Dec 3, 2019
Merged

Seeded Random Shuffle #1110

merged 4 commits into from
Dec 3, 2019

Commits on Dec 3, 2019

  1. move 'shuffle' (and specs) into a separate module

    In order to extend this and use it in other places than just the coin selection
    it makes sense to give it a proper home.
    KtorZ committed Dec 3, 2019
    Configuration menu
    Copy the full SHA
    995e006 View commit details
    Browse the repository at this point in the history
  2. replace 'Crypto.Number.Generate' by 'System.Random'

    We don't need a crypto-resistent generator here and a system generator
    will do for shuffling outputs or stake pools
    KtorZ committed Dec 3, 2019
    Configuration menu
    Copy the full SHA
    9064a78 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5a7bb37 View commit details
    Browse the repository at this point in the history
  4. implement 'mkSeed' to generate a seed from a text

    This would be pretty useful to bridge use any entity (e.g. WalletId) with a
    ToText instance as a seed for such generator
    KtorZ committed Dec 3, 2019
    Configuration menu
    Copy the full SHA
    7c95cec View commit details
    Browse the repository at this point in the history