**** BEGIN LOGGING AT Sun Oct 05 03:00:01 2014 Oct 05 10:36:31 what's a simple way of generating a random number in a specified range in the n900 default shell? Oct 05 10:40:21 FatPhil: hmm, isn't there RNG? Oct 05 10:41:43 $RANDOM is a bashism Oct 05 10:42:22 no, I meant /dev/urandom or similar Oct 05 10:42:51 othe best I can come up with idd if=/dev/random bs=2 count=1 2>/dev/null | od -d | sed something Oct 05 10:46:43 won't cut be of use? Oct 05 10:48:16 or head? Oct 05 10:53:50 I can do the cut and the head both in a sed, I'd rather use a shorter than a simpler pipeline Oct 05 10:57:21 WTF? I can only set a file that's in one of the FAT filesystems as an SMS tone?!?! Oct 05 10:57:37 which means I can Oct 05 10:57:41 t use a symlink Oct 05 11:08:05 FatPhil: you can use profileclient for setting tone via xterm Oct 05 11:09:53 and via profileclient you could specify any file Oct 05 11:09:54 ooh sounds interesting Oct 05 11:10:21 but nokia decided to not include profileclient DEB package into any repository Oct 05 11:10:26 I want to create a switcher as a Desktop Execution Widget Oct 05 11:10:31 but it is in CSSU Oct 05 11:11:37 hmm, my phone's not on a network currently, and google's not finding it Oct 05 11:12:46 http://repository.maemo.org/community-testing/pool/fremantle/free/p/profiled/ Oct 05 11:12:53 there is profileclient_0.30.2-1+0cssu1_armel.deb Oct 05 11:13:14 source code on gitorious: https://gitorious.org/community-ssu/profiled Oct 05 11:25:09 ah, so it's a DBus call Oct 05 11:56:35 FatPhil: you can do it in a perl or python oneliner (random numbers) Oct 05 11:58:03 but if you really want to do it "native" i'd check for an rng device in the sys tree (are there any?) or do it with dd like you said, but egrep '[0-9]{n}' where n is length Oct 05 11:58:42 or {m,n} where m is min and n max length Oct 05 11:59:35 and i'd add the -o flag to grep so you only get the actual numbers and not a full line that matches partially. Oct 05 12:00:31 i've never benchmarked the entropy seed on the n900, i usually generate ssh and gpg keys elsewhere. but if it's a problem theres quite a few software rng solutions that might fit here Oct 05 12:00:52 i know i've seen an PRNG seeding from pulseaudio data Oct 05 12:01:54 ah, sorry... it was for alsa. http://www.digital-scurf.org/software/randomsound Oct 05 12:02:28 I bet you could leverage the RNGs OpenSSL are using Oct 05 12:02:44 They should be fairly strong in terms of their randomness Oct 05 12:02:45 also HAVEGED seems to be an interesting project http://www.issihosts.com/haveged/ http://www.irisa.fr/caps/projects/hipsor/ Oct 05 18:59:26 many thanks for the profileclient hint - I now have an SMS tone changer desktop widget! **** ENDING LOGGING AT Mon Oct 06 02:59:59 2014