• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

safe-global / safe-eth-py / 10629724120

30 Aug 2024 08:49AM UTC coverage: 93.903%. Remained the same
10629724120

Pull #1309

github

web-flow
Merge 175bdc70e into d0479e88e
Pull Request #1309: Add reference to main in safe-eth-py dependency in addresses actions

8671 of 9234 relevant lines covered (93.9%)

3.76 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

66.67
/safe_eth/safe/tests/utils.py
1
import os
4✔
2
import random
4✔
3

4
from safe_eth.eth.constants import SECPK1_N
4✔
5

6

7
def generate_salt_nonce() -> int:
4✔
8
    return random.getrandbits(256) - 1
4✔
9

10

11
def generate_valid_s() -> int:
4✔
12
    while True:
13
        s = int(os.urandom(30).hex(), 16)
×
14
        if s <= (SECPK1_N // 2):
×
15
            return s
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc