MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / getRandomColor

Function getRandomColor

web/pgadmin/static/js/utils.js:603–605  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

601}
602
603export function getRandomColor() {
604 return '#' + ((1 << 24) * Math.random() | 0).toString(16).padStart(6, '0');
605}
606
607// Using this function instead of 'btoa' directly.
608// https://developer.mozilla.org/en-US/docs/Glossary/Base64#the_unicode_problem

Callers 1

getNewDataMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected