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

MikkelSchubert / adapterremoval / #80

06 Apr 2025 08:21PM UTC coverage: 27.836% (+0.1%) from 27.703%
#80

push

travis-ci

web-flow
improvements to utility functions (#104)

* move is_ascii_* helperfunction to strutils
* update join_text to support any containers
* use std::device_random to generate RNG seeds
* add function for getting an underlying enum value
* addition of / improvements to / tweaks to related tests

20 of 30 new or added lines in 9 files covered. (66.67%)

1 existing line in 1 file now uncovered.

2719 of 9768 relevant lines covered (27.84%)

4127.62 hits per line

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

0.0
/src/utilities.cpp
1
// SPDX-License-Identifier: GPL-3.0-or-later
2
// SPDX-FileCopyrightText: 2021 Mikkel Schubert <mikkelsch@gmail.com>
3
#include <mutex>  // for mutex
4
#include <random> // for random_device
5

6
#include "utilities.hpp"
7

8
namespace adapterremoval {
9

10
unsigned int
11
prng_seed()
×
12
{
13
  static std::mutex lock;
14
  static std::random_device source;
15

NEW
16
  std::unique_lock<std::mutex> guard(lock);
×
NEW
17
  return source();
×
18
}
19

20
} // namespace adapterremoval
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

© 2026 Coveralls, Inc