Skip to content

Commit b3b004d

Browse files
committed
preraring 2.0
1 parent 7e66bdc commit b3b004d

File tree

5 files changed

+6
-9
lines changed

5 files changed

+6
-9
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
- Added Splitmix64 algorithm
44

5-
- Better time-based seeds for 64-bit generators
5+
- Better time-based seeds for all generators
66

77
# 0.1.1
88

lib/src/seeding.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ int mess2to64B(int b, int a) {
1818
}
1919

2020
int mess2to64C(int a, int b) {
21-
return mess2to64A(a+12345, b*54321);
21+
return mess2to64A(a+0xb35a6012, b*0xdcde19b9);
2222
}
2323

2424
int mess2to64D(int a, int b) {
25-
return mess2to64B(a+12345, b*54321);
25+
return mess2to64B(a+0x93999086, b*0x87b4f97a);
2626
}
2727

2828

lib/src/xorshift128.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// SPDX-FileCopyrightText: (c) 2021 Art Galkin <github.com/rtmigo>
22
// SPDX-License-Identifier: MIT
33

4-
import 'dart:math';
5-
64
import 'package:xrandom/src/seeding.dart';
75

86
import '00_ints.dart';

lib/src/xorshift128plus.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// SPDX-FileCopyrightText: (c) 2021 Art Galkin <github.com/rtmigo>
22
// SPDX-License-Identifier: MIT
33

4-
import 'dart:math';
5-
64
import 'package:xrandom/src/seeding.dart';
75
import 'package:xrandom/src/splitmix64.dart';
86

pubspec.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: xrandom
2-
description: "All-purpose, rock-solid random number generators"
3-
version: 0.1.1
2+
description: "All-purpose, rock-solid random number generators focused on
3+
the reproducibility of tests on different platforms"
4+
version: 0.2.0
45
homepage: https://github.com/rtmigo/xrandom
56

67
environment:

0 commit comments

Comments
 (0)