You are viewing a single thread.
View all comments View context
16 points

Change “random(0)” to “random(time(0))” so the videos are less easily removed by a bot. time(0) is the number of seconds from January 1, 1970 at midnight, so the random seed keeps changing. It’s still be black and white noise but not the same noise as anyone else.

You can change that “225”, which is actually 255 in the tweet, to any number smaller than that, but it’ll make the noise darker and reduce the randomness of it. The result still has to be between 0 and 255, so you could change it to 12+random(time(0))*243 or something like that if you really wanted to make it no darker than 12.

permalink
report
parent
reply

Lemmy.World Announcements

!lemmyworld@lemmy.world

Create post

This Community is intended for posts about the Lemmy.world server by the admins.

Follow us for server news 🐘

Outages 🔥

https://status.lemmy.world

For support with issues at Lemmy.world, go to the Lemmy.world Support community.

Support e-mail

Any support requests are best sent to info@lemmy.world e-mail.

Report contact

Donations 💗

If you would like to make a donation to support the cost of running this platform, please do so at the following donation URLs.

If you can, please use / switch to Ko-Fi, it has the lowest fees for us

Join the team

Community stats

  • 487

    Monthly active users

  • 806

    Posts

  • 37K

    Comments