Github user akopich commented on the pull request: https://github.com/apache/spark/pull/1269#issuecomment-67664969 By the way. May be it's off top, but this is related to initial approximation generation. Suppose, one has `indxs : RDD[Int]` and is about to create an RDD of random ints `rnd : RDD[Int]` s.t. `rnd.count == indxs.count`. The obvious way leads to smth as follows ``` val random = new java.util.Random() val rnd = indx.map(random.nextInt) ``` But `random` object is going to be serialized and workers will recieve `random` with the same seed, thus this solution produces sequences of the same ints. What's a proper way?
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org