[Grease]-VisualWorks-Core random implementation

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Grease]-VisualWorks-Core random implementation

Boris Popov, DeepCove Labs (SNN)

The below methods are duplicates with flawed implementation (see Grease-VisualWorks-Core 3.0 – 17),

 

Collection>>atRandom

^self atRandom: Random new

 

SequencableCollection>>atRandom

^self atRandom: Random new

 

Grease either needs to add a shared random generator and use it in #atRandom or throw an error requiring explicit use of #atRandom: by callers.

 

-Boris

Sr. Software Engineer

DeepCove Labs

4th floor, 595 Howe Street

Vancouver, BC V6C 2T5

Canada


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc