pnxtech / hydra

A light-weight library for building distributed applications such as microservices
https://www.hydramicroservice.com
MIT License
645 stars 54 forks source link

I177 - Return proper randomzied array each call #183

Closed sjmcdowall closed 6 years ago

sjmcdowall commented 6 years ago

If the array was cached we were not returning a new random array and some code was dependent on array[0] being a random element each call. Although not the most elegant solution for huge # of services -- it's certainly concise and "good enough" for anything normal (say 500 or less instances).

sjmcdowall commented 6 years ago

OK -- Added semi-colon ..