"Mutant Rob" Robert Rothenberg
-
I've uploaded a prototype module for generating and parsing metadata about software #AI and automation policies, based on ideas from the #Perl Toolchain Summit in April.
The idea is to have machine-readavle information about how code is generated, what kind of automated contributions are handled are allowed, and what kind of automation the maintainers of a project use.
There's a draft spec at https://github.com/CPAN-Security/cpan-metadata-v3/blob/main/automation-policy.md but it's already out-of-sync with the Perl code.
Ideas and feedback would be appreciated.
https://metacpan.org/release/RRWO/Dist-AutomationPolicy-v0.1.0
-
Nope. Perl's built-in rand is seeded by 32-bits. The size of the internal state doesn't matter.
By making several requests to get session IDs, one can deduce the internal state of rand.
The multiplier does nothing to improve the security. Ultimately rand is just based in 32-bits.
-
Require coconut be labelled as an #allergen on food packaging - #Petitions
-
I've uploaded a new #Perl Critic policy that checks code for naive random data generation from a hash over not-so-randonm sources like rand(), system time, pid such as
md5_hex( rand . time . $$ . ++$counter )
This anti-pattern is used in many places, and has been the reason for several CVEs.
https://metacpan.org/release/RRWO/Perl-Critic-Policy-Security-RandBytesFromHash-v0.1.0
As a scholarly aside, I am curious as to who first came up this anti-pattern.
-
I've released a new version of Dist-Zilla-Plugin-UsefulReadme to #CPAN.
This is a #perl #dzil plugin for generating a README with just the useful bits of the module POD.
This latest version adds a minor option to disable adding prerequisites (mainly for bootstrapping itself) and tweaks some tests.
https://metacpan.org/release/RRWO/Dist-Zilla-Plugin-UsefulReadme-v0.5.1
-
Today's stupid #webdev trick:
I'm using #ApacheHTTPD web server with #ServerSideIncludes, and needed to set a response header.
The solution was to set a variable in the .shtml file, e.g.
<!--#set var="OVERRIDE" value="1" -->
and in the server configuration add
Header set My-Header "new-value" env=OVERRIDE