Skip to content

Commit

Permalink
go txsource: tweak rng init with workload name
Browse files Browse the repository at this point in the history
  • Loading branch information
pro-wh committed Dec 23, 2019
1 parent f27cd7b commit 26b3fc3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion go/oasis-node/cmd/debug/txsource/txsource.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func doRun(cmd *cobra.Command, args []string) error {
// Set up the deterministic random source.
hash := crypto.SHA512
seed := []byte(viper.GetString(CfgSeed))
src, err := drbg.New(hash, seed, nil, []byte("txsource workload generator v1"))
src, err := drbg.New(hash, seed, nil, []byte(fmt.Sprintf("txsource workload generator v1, workload %s", name)))
if err != nil {
return fmt.Errorf("drbg.New: %w", err)
}
Expand Down
20 changes: 10 additions & 10 deletions tests/fixture-data/txsource/staking-genesis.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"total_supply": "1000",
"ledger": {
"qihOAOzylETIN28lq+XmtKSFmTiEo3NKfHXHnjrV0rA=": {"general": {"balance": "100"}},
"bOnQrjMOkH9k3tgRy+zJYvYsPGxAOAr+heQNwuCkxQs=": {"general": {"balance": "100"}},
"MY5gEDGOVhG2JkvJqLtuFzEyLBXOwnwPRZSmd1ljCdg=": {"general": {"balance": "100"}},
"4ohqzsjinLP+HE8Jh1HmvBPgbWfOolAoBRfs5D5IC0A=": {"general": {"balance": "100"}},
"5EOJGxu1d6BSvH95BxWPSl0cAy270+JpHMhIvdBjbWc=": {"general": {"balance": "100"}},
"Y9b7wxlaXDmqaFNg2B6xTCcyTefHm9yEVXnTL+/C3kA=": {"general": {"balance": "100"}},
"CqvWofjPCXbJdxAdxmFtiZ2AMb/fH+UxGYHymO28ppU=": {"general": {"balance": "100"}},
"IJrjaBnQqXVtylLKiI70VjOIyV/Dk3zWsxIrz8ovha4=": {"general": {"balance": "100"}},
"7hJlJ4x1dcqxCV0bGO8iTCPMucXHLcj5JeGBnTn7dQ4=": {"general": {"balance": "100"}},
"Q16jPsco2bGCiacAlffWSHsDaMG0UBWv+FajU3c3MXg=": {"general": {"balance": "100"}}
"R3CRgwIWQxvnxpl1qmBm2HMOapCgaGswjtleKwnpyxg=": {"general": {"balance": "100"}},
"arDOJeLJ9wZpuWa5t7+O8UGmZOXXdKQkN6t8IKbSylE=": {"general": {"balance": "100"}},
"THXr3BkLrlDt89pu3AyeiVGB9u4igSx1fuLIFX98BNI=": {"general": {"balance": "100"}},
"aYzCAO60yhEH0CWIGgEy+qM4TdNB+Ak8kq9Y/mpzQLY=": {"general": {"balance": "100"}},
"aYGCs2K/owoE+nqLbOMFA5xqSo0SaHlI5Oj1btUFohI=": {"general": {"balance": "100"}},
"GMGUREz0YmNCLGEvoLDpfRLYBxq1HQx9jQNDK6/Oajc=": {"general": {"balance": "100"}},
"UJBCV7QyXc3cFIUqDvUT18RxNTtIIwZ3s6lVdC1Zs/U=": {"general": {"balance": "100"}},
"QsJ1u2WAJiSH0m+ExtL1cRrmyfdhCV8pidgowj2g9rY=": {"general": {"balance": "100"}},
"9zPKp7jryXaToR806PyzByNy5LVTwnie3Y3dkCxh1oo=": {"general": {"balance": "100"}},
"+mLNei3EG4jmo6RDjjU6d/FswfbHHNpR+Lz0EdSaINw=": {"general": {"balance": "100"}}
}
}

0 comments on commit 26b3fc3

Please sign in to comment.