Support and General Use > Hardware
iriver h1x0 - RTC (real time clock) mod
roolku:
--- Quote from: crypt@ on April 15, 2007, 12:03:22 PM ---Just a thought, shuffle is seeded by Mersenne Twister dued to lack of RTC on h1X0. Now that RTC on iriver is possible, is there a chance that the RTC can be used to seed the shuffle list?
--- End quote ---
I am not sure I follow. Mersenne Twister is the algorithm, not the seed. And all of rockbox's RTC features should work now, so if RTC is used on other targets to seed the generator, it is for the modded h1x0.
Congratulations by the way. I have added you to The List. :)
crypt@:
Oops, I actully meant to ask "if RTC is used in srand to provide the seed for Mersenne Twister"?
safetydan:
From a quick look at the code it looks like the seed for the playlist shuffle is actually the current_tick not the current time. The current_tick is the number of ticks since the player was booted and updates at 100Hz if I remember correctly. So it should be pretty random regardless of whether the target has an RTC or not.
So to answer your question, no the RTC is not used to seed the shuffle randomness, but it doesn't matter anyway as what is used to seed it is good enough.
Heriver:
Hello.
First:
I've compile the soure with the RTC enable and after a few try's, it must be good.
No error's but only 2 remarks.
I have installed to the H120 and it start-up ,wow, try some thing's looks good,
and i see an empty time, only this --:--
and thats my problem now, how do i get these IC's?
Some visit at Maxim's site doesn't sound good.
EDIT: I have r'ved these DS3231S IC's finaly!
TaperChuck:
Has anyone patched the 05-13 build of Mmmm's REP with the RTC code?
I haven't been able to run the RTC after I had some problems with an older REP build and would like to get the RTC up and running again. I tried reading through the stuff on patching and gave up :(
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version