We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05c3ed6 commit 3b17b5fCopy full SHA for 3b17b5f
1 file changed
Runtime/Aptabase.cs
@@ -17,7 +17,6 @@ public static class Aptabase
17
private static string _baseURL;
18
19
private static readonly TimeSpan _sessionTimeout = TimeSpan.FromMinutes(60);
20
- private static readonly Random _random = new();
21
private static readonly Dictionary<string, string> _hosts = new()
22
{
23
{ "US", "https://us.aptabase.com" },
@@ -169,7 +168,7 @@ private static int GetFlushInterval()
169
168
public static string NewSessionId()
170
171
var epochInSeconds = DateTimeOffset.UtcNow.ToUnixTimeSeconds();
172
- var random = _random.NextInt64(0, 99999999);
+ var random = Random.Range(0, 99999999);
173
return (epochInSeconds * 100000000 + random).ToString();
174
}
175
0 commit comments