-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moving ACE.Server.Physics.Common.Random to ACE.Common.Random #1162
Conversation
Changed Random wrapper to instantiate a new Random when needed and removed the heavyweight wrapping
changed class name to ThreadSafeRandom changed function names to Next
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if we are referencing ACE.Common, that namespace should be included in the usings for those classes
getting a random # should be ThreadSafeRandom, instead of Common.ThreadSafeRandom
No problem. Actually, I just noticed that I accidentally included one of your branches. I'll submit a new PR tonight after I remove your branch concerning melee combat and refactor ACE.Common.ThreadSafeRandom to just ACE.ThreadSafeRandom |
namespace ACE.Common | ||
{ | ||
// important class, ensure unit tests pass for this | ||
public static class ThreadSafeRandom |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file should be named ThreadSafeRandom.cs
replaced the old thread discriminator with a lock
renamed to
ThreadSafeRandom
and functions to the familiarNext