sscheib 11 Posted October 21, 2016 Share Posted October 21, 2016 Hello, I have noticed, that playing a series in random order will result in playing the same few episodes in the beginning, until it gets random. This applies for every series I tested it with. Would be nice if the randomness could actually improved, so that it will be actually random, starting from the first episode. Link to comment Share on other sites More sharing options...
Luke 37046 Posted October 21, 2016 Share Posted October 21, 2016 Thanks for the report. It is a random query. I apologize that you've seen this behavior multiple times but it may happen once in a while. Link to comment Share on other sites More sharing options...
sscheib 11 Posted October 21, 2016 Author Share Posted October 21, 2016 Actually its reproducable every single time, but only once per day per series. Briefly explained: - Playing "2.Broke.Girls" randomly on day 1 -> remember first few episodes - Playing "2.Broke.Girls" randomly on day 2 -> same episodes again - Playing "2.Broke.Girls" randomly on day 3 -> same episodes again etc After the first few "unrandom" episodes it begins to be "random" (not seeing any patterns at least) Link to comment Share on other sites More sharing options...
Luke 37046 Posted October 21, 2016 Share Posted October 21, 2016 I have done some testing and I did not see this. Yes out of many attempts there were some occurrences where the first episode of the series was chosen but it was not something that was happening every single time. Link to comment Share on other sites More sharing options...
sscheib 11 Posted October 21, 2016 Author Share Posted October 21, 2016 (edited) This is very strange, as I really can reproduce this, day in day out. Is there a way to increase the randomness (via some environment variable from mono itself maybe?) or is this happening due to weak entropy on my side? Just out of interest: How do you create the randomness? Some self written class or simply using the class "Random"?. In case you use "Random": I don't want to criticise you - don't get me wrong - but Random is known for its weak randomness. I'd highly suggest using RNGCryptoServiceProvider, which would deliver way more randomness, as it uses the OS entropy and much more indicators to create random numbers. Random is only using the the CPU clock and some seed to generate the randomness afaik. Edited October 21, 2016 by sscheib Link to comment Share on other sites More sharing options...
sscheib 11 Posted February 6, 2017 Author Share Posted February 6, 2017 @@Luke Weeks later I realize why you where not able to reproduce this issue. Basically the problem is, that I start playing series around the same time every day (around 8PM'ish) and it seems like that the time is a taken into the randomness - or whatever you want to call it - and so it ends up playing the same first episode in around 80% of the time. It is really freaking annoying (now even more with the gone next episode button). Could you please take a look at that? Thank you very much. Link to comment Share on other sites More sharing options...
Luke 37046 Posted February 6, 2017 Share Posted February 6, 2017 What are the steps to reproduce? Link to comment Share on other sites More sharing options...
sscheib 11 Posted February 6, 2017 Author Share Posted February 6, 2017 Everyday for a week play the same series random at the same time - preferable evening Link to comment Share on other sites More sharing options...
Luke 37046 Posted February 6, 2017 Share Posted February 6, 2017 So click shuffle on the detail screen? Link to comment Share on other sites More sharing options...
sscheib 11 Posted February 6, 2017 Author Share Posted February 6, 2017 My girlfriend does that (as you said). I always click the three dots in the overview of all series and select "shuffle". But we both have the same behaviour .. Link to comment Share on other sites More sharing options...
Luke 37046 Posted February 7, 2017 Share Posted February 7, 2017 Can you provide an emby server log from this attempt? thanks ! Link to comment Share on other sites More sharing options...
sscheib 11 Posted February 7, 2017 Author Share Posted February 7, 2017 from what exactly? If I understand you correctly you want a log file from several days where we are watching series? Link to comment Share on other sites More sharing options...
Luke 37046 Posted February 7, 2017 Share Posted February 7, 2017 Or just recreate the issue again and provide a new server log. thanks ! Link to comment Share on other sites More sharing options...
sscheib 11 Posted February 7, 2017 Author Share Posted February 7, 2017 Well do you want me to play it ONCE randomly or "provoke" the issue while playing the same series over several days? Link to comment Share on other sites More sharing options...
Luke 37046 Posted February 8, 2017 Share Posted February 8, 2017 i basically just want to know your sqlite version which is printed early in the log. we are using the sqlite random() function to order results randomly. Link to comment Share on other sites More sharing options...
sscheib 11 Posted February 8, 2017 Author Share Posted February 8, 2017 Well just ask me for that then instead of letting me do garbage if you only want to know a specific info . I guess you already noticed, that I'm not newbie regarding Linux and in case I don't understand what you need exactly I'm perfectly fine to ask you again. My installed SQLite versions are: libembysqlite3-0:amd64: 3.16.0+2-1.1 libmono-sqlite4.0-cil: 4.6.2.7-0xamarin3 libsqlite3-0:amd64: 3.16.2-1 Link to comment Share on other sites More sharing options...
sscheib 11 Posted February 12, 2017 Author Share Posted February 12, 2017 bump Link to comment Share on other sites More sharing options...
Luke 37046 Posted February 12, 2017 Share Posted February 12, 2017 I cannot reproduce this, sorry. We are using the database random() function, it might be incorporating date and time. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now