News for hackers. Stuff that matters.
Re:Show HN: Twitch Installs Arch Linux – A cooperative text-... by sarciszewski on Friday October 30, 2015 @11:09AM (#10478273)
wait, you mean "sudo shred /dev/sda1 &"?
Re:Show HN: Twitch Installs Arch Linux – A cooperative text-... by DanWaterworth on Friday October 30, 2015 @12:02PM (#10478602)
wait, �ջ;Y?�2�c�Ig7aus�_1��S���^���{9��§5�?�a B'����W�E��ʧ�X*C��J�4���ѡ�s�]q������a]���
Re:Show HN: Twitch Installs Arch Linux – A cooperative text-... by jerf on Friday October 30, 2015 @12:38PM (#10478851)
Random binary dumps aren't what they used to be. You should manually decode some 8-bit ascii by hand:

    $ python
    Python 2.7.6
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import random
    >>> print(''.join([chr(random.randint(32,255)) 
         for x in range(50)]).decode("latin-1"))
    ¿IBÄõq½¦Áºn}@õÖhzUÌÓQ£m5ë¢ümÇ®=ÇÆªLÛHt
Now that's quality random binary garbage.
Re:Show HN: Twitch Installs Arch Linux – A cooperative text-... by beefhash on Friday October 30, 2015 @03:56PM (#10480155)
Medium-quality random binary garbage. randint is an alias for randrange,[1] which produces "slightly uneven distributions" according to the docs before version 3.2.[2]

[1] https://docs.python.org/3/library/random.html?highlight=rand... (There's no such hint for the 2.x docs, but I'm guessing it was just added later for clarification)

[2] https://docs.python.org/3/library/random.html?highlight=rand...

Re:Show HN: Twitch Installs Arch Linux – A cooperative text-... by mncolinlee on Friday October 30, 2015 @01:56PM (#10479367)
Someone needs to write a JAPH of "sudo shred /dev/sda1 &" <Begin obfuscation contest>
Re:Show HN: Twitch Installs Arch Linux – A cooperative text-... by ryan-c on Friday October 30, 2015 @02:01PM (#10479404)

    dd if=/dev/zero of=/dev/sda bs=1M &
would be worse. `shred` is slow.
Re:Show HN: Twitch Installs Arch Linux – A cooperative text-... by vortico on Friday October 30, 2015 @04:09PM (#10480240)
And dd if=/dev/urandom of=/dev/sda & is probably faster than shred, but I could be wrong as it might be doing essentially that.