Skip to content

Commit

Permalink
fix: more random dids
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Bluhm <[email protected]>
  • Loading branch information
dbluhm committed Apr 4, 2024
1 parent c02c154 commit 62744c1
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions demo/runners/support/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
import json
import logging
import os
import random
import subprocess
import sys
from concurrent.futures import ThreadPoolExecutor
from timeit import default_timer
from secrets import token_hex

import asyncpg
import yaml
Expand Down Expand Up @@ -207,12 +207,8 @@ def __init__(
seed = None
elif self.endorser_role and not seed:
seed = "random"
rand_name = str(random.randint(100_000, 999_999))
self.seed = (
("my_seed_000000000000000000000000" + rand_name)[-32:]
if seed == "random"
else seed
)
rand_name = token_hex(4)
self.seed = token_hex(16) if seed == "random" else seed
self.storage_type = params.get("storage_type")
self.wallet_type = params.get("wallet_type") or "askar"
self.wallet_name = (
Expand Down

0 comments on commit 62744c1

Please sign in to comment.