this post was submitted on 17 Jun 2023
519 points (96.9% liked)

Lemmy.World Announcements

28915 readers
4 users here now

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 [email protected] 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

Ko-Fi (Donate)

Bunq (Donate)

Open Collective backers and sponsors

Patreon

Join the team

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 17 points 1 year ago

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.