Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

svg format blockies,new styling #2

Merged
merged 3 commits into from
Nov 7, 2023
Merged

svg format blockies,new styling #2

merged 3 commits into from
Nov 7, 2023

Conversation

jamesmudgett
Copy link
Collaborator

Also, changed output to SVG format.

Copy link
Member

@kdenhartog kdenhartog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One suggestion, but up to you if you want to switch. Overall LGTM.

Spent a bit of time looking through how this was getting used in Brave-core. I'm not seeing any issues with switching this over to an SVG format either.

function buildOpts(opts) {
var newOpts = {};

newOpts.seed = opts.seed || Math.floor((Math.random() * Math.pow(10, 16))).toString(16);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we use window.crypto.getRandomValue() here it should bias less meaning we won't see patterns repeat in the image as often. I would recommend this, but the odds of a user encountering a repeating image with the current implementation will still be slim.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants