File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
c++/pod5_format/migration Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1717
1818- Fixed migration behaviour on nfs systems, where migrated tables could be left orphaned on disk.
1919- Limited polars install version to "~ =1.20,<1.32" following breaking changes
20+ - Tidied up how tmp files are named, used a larger set of numbers for naming.
2021
2122## [ 0.3.33]
2223
Original file line number Diff line number Diff line change @@ -6,14 +6,13 @@ namespace pod5 {
66
77Result<std::unique_ptr<TemporaryDir>> MakeTmpDir (char const * suffix)
88{
9- std::uint32_t counter = 0 ;
10- while (counter < 3 ) {
9+ std::default_random_engine gen (
10+ static_cast <std::default_random_engine::result_type>(arrow::internal::GetRandomSeed ()));
11+
12+ for (std::uint32_t counter = 0 ; counter < 5 ; ++counter) {
1113 std::string tmp_path = std::string{" .tmp_" } + suffix;
1214
13- std::default_random_engine gen (
14- static_cast <std::default_random_engine::result_type>(arrow::internal::GetRandomSeed ()));
15- std::uniform_int_distribution<int > dist (0 , 1024 );
16- tmp_path += " _" + std::to_string (dist (gen));
15+ tmp_path += " _" + std::to_string (gen ());
1716
1817 ARROW_ASSIGN_OR_RAISE (
1918 auto filename, arrow::internal::PlatformFilename::FromString (tmp_path));
You can’t perform that action at this time.
0 commit comments