From 0c54efed9eb122b9762503a43768b7480aa45e48 Mon Sep 17 00:00:00 2001 From: Etienne Baratte Date: Wed, 11 May 2022 16:56:09 +0200 Subject: [PATCH] fix: fix word cloud randomness (#19977) --- .../plugins/plugin-chart-word-cloud/src/chart/WordCloud.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/superset-frontend/plugins/plugin-chart-word-cloud/src/chart/WordCloud.tsx b/superset-frontend/plugins/plugin-chart-word-cloud/src/chart/WordCloud.tsx index a903c26fbc70..61f3e7977a1a 100644 --- a/superset-frontend/plugins/plugin-chart-word-cloud/src/chart/WordCloud.tsx +++ b/superset-frontend/plugins/plugin-chart-word-cloud/src/chart/WordCloud.tsx @@ -28,10 +28,11 @@ import { import { SupersetThemeProps, withTheme, - seedRandom, + seed, CategoricalColorScale, } from '@superset-ui/core'; +const seedRandom = seed('superset-ui'); export const ROTATION = { flat: () => 0, // this calculates a random rotation between -90 and 90 degrees.